79% wp-series-manager

Code Review | WP Series Manager

WordPress plugin WP Series Manager scored79%from 54 tests.

About plugin

  • Plugin page: wp-series-manager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Dec 12, 2012
  • Number of updates: 5
  • Update frequency: every 6.2 days
  • Top authors: omidr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼15.19ms] Passed 4 tests

Server-side resources used by WP Series Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.90 ▲0.80
Dashboard /wp-admin3.37 ▲0.0745.11 ▼7.15
Posts /wp-admin/edit.php3.43 ▲0.0749.05 ▲0.79
Add New Post /wp-admin/post-new.php3.22 ▼2.6736.83 ▼55.20
Media Library /wp-admin/upload.php3.30 ▲0.0635.32 ▲0.98
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wp-series3.2933.14
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wp-series3.2938.06
Add new serie /wp-admin/post-new.php?post_type=wp-series3.2235.08
All series /wp-admin/edit.php?post_type=wp-series3.3541.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
category_children
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Series Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.21 ▼1.161.77 ▼0.1440.93 ▼10.36
Dashboard /wp-admin2,241 ▲535.84 ▲0.95114.30 ▼3.9641.78 ▼5.96
Posts /wp-admin/edit.php2,134 ▲452.04 ▲0.0440.40 ▲5.4935.97 ▲1.82
Add New Post /wp-admin/post-new.php6,239 ▲4,71118.99 ▼4.23860.19 ▲180.1057.27 ▼1.93
Media Library /wp-admin/upload.php1,426 ▲414.18 ▼0.02100.76 ▼6.4044.70 ▲0.86
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wp-series1,3422.1426.9530.15
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wp-series1,4812.1428.2432.30
Add new serie /wp-admin/post-new.php?post_type=wp-series2,6337.92180.4267.89
All series /wp-admin/edit.php?post_type=wp-series1,1651.9534.4132.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • category_children
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=wp-series
    • > Notice in wp-content/plugins/wp-series-manager/wp-series-manager.php+104
    Undefined index: series_manager_nonce

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× 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/wp-series-manager/1.0.1/wp-series-manager.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-series-manager/wp-series-manager.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: posts, post

wp-series-manager/wp-series-manager.php Passed 13 tests

The main file in "WP Series Manager" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
95 characters long description:
A plugin for managing tutorial series and any other thing that can be published in a serial way

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
Good job! No executable or dangerous file extensions detected269 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12055213
PO File1193856

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions24
▷ Named functions24100.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