84% hello-poppet

Code Review | Hello Poppet

WordPress plugin Hello Poppet scored84%from 54 tests.

About plugin

  • Plugin page: hello-poppet
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2017
  • Latest release: Aug 30, 2020
  • Number of updates: 8
  • Update frequency: every 160.5 days
  • Top authors: isabel104 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.94ms] Passed 4 tests

Analyzing server-side resources used by Hello Poppet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.63 ▼1.22
Dashboard /wp-admin3.32 ▲0.0244.94 ▼1.07
Posts /wp-admin/edit.php3.38 ▲0.0247.34 ▼7.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.95 ▼2.41
Media Library /wp-admin/upload.php3.25 ▲0.0234.09 ▲0.65

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hello Poppet
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.28 ▼1.111.63 ▲0.0140.33 ▼5.82
Dashboard /wp-admin2,208 ▲595.79 ▲0.19101.54 ▲3.1536.03 ▼2.76
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0635.29 ▼5.3430.20 ▼8.53
Add New Post /wp-admin/post-new.php1,589 ▲5122.52 ▼0.57647.57 ▼70.7050.14 ▼0.81
Media Library /wp-admin/upload.php1,393 ▲54.19 ▼0.1193.33 ▼14.8941.40 ▼5.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-poppet/hello-poppet.php:124

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: pirates of the caribbean, quotes, movie quotes, poppet, movies...

hello-poppet/hello-poppet.php Passed 13 tests

"Hello Poppet" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
119 characters long description:
Adds a random quote from Pirates of the Caribbean, all 4 movies, in the upper right of your admin screen on every page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1636104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin