79% seeder

Code Review | Seeder

WordPress plugin Seeder scored79%from 54 tests.

About plugin

  • Plugin page: seeder
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Mar 29, 2016
  • Latest release: Nov 21, 2017
  • Number of updates: 10
  • Update frequency: every 60.3 days
  • Top authors: aaronholbrook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.91ms] Passed 4 tests

This is a short check of server-side resources used by Seeder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.07 ▼5.72
Dashboard /wp-admin3.38 ▲0.0446.89 ▼11.50
Posts /wp-admin/edit.php3.50 ▲0.1447.58 ▼2.00
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.19 ▲1.77
Media Library /wp-admin/upload.php3.31 ▲0.0830.99 ▼4.43
Seeder /wp-admin/tools.php?page=seeder3.2730.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Seeder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.59 ▼0.831.78 ▲0.1037.80 ▲0.08
Dashboard /wp-admin2,213 ▲225.85 ▲0.98108.61 ▼5.1842.17 ▲1.26
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0540.32 ▲1.7835.89 ▲2.24
Add New Post /wp-admin/post-new.php1,545 ▲318.24 ▼0.04587.03 ▼13.8453.24 ▼8.12
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.0296.78 ▼9.9041.44 ▼2.61
Seeder /wp-admin/tools.php?page=seeder7792.1823.7626.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seeder/seeder.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A7\\Seeder\\add_action() in wp-content/plugins/seeder/src/handler.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A7\\Admin_Notices\\add_action() in wp-content/plugins/seeder/vendor/a7/admin-notices/src/admin-notices.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A7\\Admin_Notices\\add_action() in wp-content/plugins/seeder/vendor/a7/admin-notices/src/admin-notices.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A7\\Seeder\\add_action() in wp-content/plugins/seeder/src/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A7\\Admin_Notices\\add_action() in wp-content/plugins/seeder/vendor/a7/admin-notices/src/admin-notices.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: seed, infrequent actions, administrator

seeder/seeder.php Passed 13 tests

The principal PHP file in "Seeder" v. 2.0.0 is loaded by WordPress automatically on each request
57 characters long description:
Perform heavy / infrequent actions in a controlled manner

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin765 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16170202600
JSON400130
Markdown218035

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin