84% really-simple-series

Code Review | Really Simple Series

WordPress plugin Really Simple Series scored84%from 54 tests.

About plugin

  • Plugin page: really-simple-series
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2012
  • Latest release: Aug 12, 2012
  • Number of updates: 12
  • Update frequency: every 0.9 days
  • Top authors: krogsgard (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Really Simple Series
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.05 ▲0.45
Dashboard /wp-admin3.34 ▲0.0443.92 ▲1.15
Posts /wp-admin/edit.php3.39 ▲0.0446.79 ▲4.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.08 ▲1.62
Media Library /wp-admin/upload.php3.26 ▲0.0333.43 ▲0.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Really Simple Series
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.28 ▼1.285.02 ▲3.0437.61 ▼7.35
Dashboard /wp-admin2,203 ▲544.88 ▼0.68109.42 ▲12.0841.94 ▼2.07
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0440.02 ▲6.0636.07 ▼1.93
Add New Post /wp-admin/post-new.php1,514 ▼617.39 ▼5.89656.04 ▼1.7251.57 ▼8.71
Media Library /wp-admin/upload.php1,385 ▼04.12 ▼0.0996.72 ▼6.4739.55 ▼2.87

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just 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 load_plugin_textdomain() in wp-content/plugins/really-simple-series/really-simple-series.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Default display of a series at the bottom of a post), #2 (Edit category screen to enable a category for a series)
The official readme.txt might help

really-simple-series/really-simple-series.php 92% from 13 tests

The main file in "Really Simple Series" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)

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
No dangerous file extensions were detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113638133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin