78% wp-cookiecuttr-by-nimrodstu

Code Review | wp cookiecuttr by nimrodstu

WordPress plugin wp cookiecuttr by nimrodstu scored78%from 54 tests.

About plugin

  • Plugin page: wp-cookiecuttr-by...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Sep 10, 2015
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: nimrodstu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.33ms] Passed 4 tests

Server-side resources used by wp cookiecuttr by nimrodstu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0825.55 ▼21.61
Dashboard /wp-admin3.31 ▲0.0154.03 ▼2.10
Posts /wp-admin/edit.php3.36 ▲0.0149.76 ▲6.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.41 ▲1.36
Media Library /wp-admin/upload.php3.24 ▲0.0139.84 ▲5.05
WP CookieCuttr /wp-admin/options-general.php?page=my-unique-identifier3.2032.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

wp cookiecuttr by nimrodstu: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲13313.40 ▼1.0010.96 ▲9.1145.14 ▼0.20
Dashboard /wp-admin2,199 ▲195.56 ▼0.1092.75 ▲4.1841.44 ▲4.72
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0740.33 ▲6.4635.30 ▼3.73
Add New Post /wp-admin/post-new.php1,531 ▼223.08 ▲0.07662.08 ▼39.0649.95 ▼6.53
Media Library /wp-admin/upload.php1,401 ▲14.24 ▼0.02100.76 ▼5.7947.53 ▲0.82
WP CookieCuttr /wp-admin/options-general.php?page=my-unique-identifier8422.0325.1326.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Notice in wp-content/plugins/wp-cookiecuttr-by-nimrodstu/cookiecuttr.php+55
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookiecuttr-by-nimrodstu/cookiecuttr.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-cookiecuttr-by-nimrodstu === )
The official readme.txt might help

wp-cookiecuttr-by-nimrodstu/cookiecuttr.php 92% from 13 tests

The entry point to "wp cookiecuttr by nimrodstu" version 0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-cookiecuttr-by-nimrodstu.php" instead of "cookiecuttr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected433 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22662316
PHP191684
CSS13133

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin