68% eg-series

Code Review | EG-Series

WordPress plugin EG-Series scored 68% from 54 tests.

About plugin

  • Plugin page: eg-series
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.9.0
  • WordPress version: 6.3.1
  • First release: Mar 22, 2009
  • Latest release: Apr 15, 2014
  • Number of updates: 35
  • Update frequency: every 57.0 days
  • Top authors: EmmanuelG (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active / 10,015 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲1.07ms] Passed 4 tests

A check of server-side resources used by EG-Series
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.89 ▲2.27
Dashboard /wp-admin3.45 ▲0.1556.16 ▲2.98
Posts /wp-admin/edit.php3.50 ▲0.1551.29 ▼3.13
Add New Post /wp-admin/post-new.php5.97 ▲0.0994.03 ▲2.49
Media Library /wp-admin/upload.php3.31 ▲0.0839.21 ▲2.63
EG-Series /wp-admin/edit-tags.php?taxonomy=series&post_type=page3.3039.30
EG-Series /wp-admin/edit-tags.php?taxonomy=series3.3040.64
EG-Series /wp-admin/options-general.php?page=egs_options3.4538.26
EG-Series Bulk Edit /wp-admin/edit.php?page=egs_post_edit3.2636.40

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for EG-Series
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5313.78 ▲0.571.91 ▲0.0545.50 ▲3.23
Dashboard /wp-admin2,245 ▲394.85 ▼1.01111.49 ▲8.7743.47 ▲0.38
Posts /wp-admin/edit.php2,167 ▲782.03 ▼0.0339.35 ▼1.2733.19 ▼3.25
Add New Post /wp-admin/post-new.php1,566 ▲2423.16 ▲5.03665.51 ▼86.5149.63 ▼5.44
Media Library /wp-admin/upload.php1,430 ▲424.18 ▼0.0594.70 ▼18.3841.30 ▼41.46
EG-Series /wp-admin/edit-tags.php?taxonomy=series&post_type=page1,2762.1429.7430.67
EG-Series /wp-admin/edit-tags.php?taxonomy=series1,2732.1427.7230.57
EG-Series /wp-admin/options-general.php?page=egs_options1,1831.8625.4529.28
EG-Series Bulk Edit /wp-admin/edit.php?page=egs_post_edit1,0272.2338.9630.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/eg-series/uninstall.php+14
    Constant EGS_TAXONOMY already defined
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • EG-Series-Options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=egs_post_edit
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=egs_post_edit
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'EG_Plugin_133' not found in wp-content/plugins/eg-series/inc/eg-series-admin.inc.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EG_Widget_211' not found in wp-content/plugins/eg-series/inc/eg-series-widgets.inc.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EG_Series_Common' not found in wp-content/plugins/eg-series/inc/eg-series-settings.inc.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eg-series/lib/eg-widgets.inc.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'EG_Plugin_133' not found in wp-content/plugins/eg-series/inc/eg-series-public.inc.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eg-series/lib/eg-widgets.inc.php:31

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: A description for screenshot #6 is missing in eg-series/assets to your readme.txt
You can look at the official readme.txt

eg-series/eg-series.php Passed 13 tests

The primary PHP file in "EG-Series" version 2.1.1 is used by WordPress to initiate all plugin functionality
70 characters long description:
Better organize and highlight your posts by grouping them into series.

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
Good job! No executable or dangerous file extensions detected3,248 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP125189912,763
PO File1164182338
JavaScript510490
CSS227057

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity40.38
▷ Minimum class complexity3.00
▷ Maximum class complexity95.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods102
▷ Static methods1615.69%
▷ Public methods102100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/tinymce/img/egseries.png1.76KB1.36KB▼ 22.88%