89% easy-post-series

Code Review | Easy Post Series

WordPress plugin Easy Post Series scored89%from 54 tests.

About plugin

  • Plugin page: easy-post-series
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 28, 2015
  • Latest release: Oct 23, 2016
  • Number of updates: 16
  • Update frequency: every 37.8 days
  • Top authors: maurisrx (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

30+ active /2,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.05ms] Passed 4 tests

Analyzing server-side resources used by Easy Post Series
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.17 ▲2.19
Dashboard /wp-admin3.36 ▲0.0247.36 ▼18.97
Posts /wp-admin/edit.php3.42 ▲0.0647.75 ▲4.39
Add New Post /wp-admin/post-new.php5.95 ▲0.0581.76 ▼15.81
Media Library /wp-admin/upload.php3.29 ▲0.0537.35 ▲4.95
Series /wp-admin/edit-tags.php?taxonomy=series3.2833.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Post Series
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16614.07 ▼0.515.35 ▲3.6439.29 ▼3.31
Dashboard /wp-admin2,210 ▲225.83 ▲0.9292.12 ▼23.3139.41 ▼7.97
Posts /wp-admin/edit.php2,136 ▲472.01 ▼0.0533.27 ▼6.6635.08 ▼1.36
Add New Post /wp-admin/post-new.php1,536 ▼723.12 ▲4.61645.46 ▲26.6147.34 ▼0.96
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0695.74 ▲1.7641.96 ▼1.09
Series /wp-admin/edit-tags.php?taxonomy=series1,2382.2625.3028.67

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add a series to a post), #2 (Posts navigation on a series post)
You can take inspiration from this readme.txt

easy-post-series/easy-post-series.php 85% from 13 tests

The primary PHP file in "Easy Post Series" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected202 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP137128151
JavaScript12026
CSS14025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.52MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png530.09KB143.50KB▼ 72.93%
screenshot-1.png3.81KB2.16KB▼ 43.36%