68% post-series

Code Review | Post Series

WordPress plugin Post Series scored 68% from 54 tests.

About plugin

  • Plugin page: post-series
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 30, 2012
  • Latest release: Jul 4, 2016
  • Number of updates: 35
  • Update frequency: every 54.7 days
  • Top authors: MiksLatvis (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active / 5,506 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.93MB] [CPU: ▼57.83ms] Passed 4 tests

An overview of server-side resources used by Post Series
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.93 ▼43.22
Dashboard /wp-admin2.07 ▼1.235.93 ▼45.10
Posts /wp-admin/edit.php2.08 ▼1.287.16 ▼40.75
Add New Post /wp-admin/post-new.php2.08 ▼3.816.55 ▼102.25
Media Library /wp-admin/upload.php2.08 ▼1.155.75 ▼30.35
Series of posts /wp-admin/edit-tags.php?taxonomy=series_of_posts2.088.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Post Series
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.86 ▲0.481.80 ▼0.2440.94 ▼4.68
Dashboard /wp-admin2,212 ▲245.89 ▲1.01108.43 ▼7.9744.43 ▼0.76
Posts /wp-admin/edit.php2,130 ▲412.05 ▲0.0842.92 ▲6.8734.89 ▲0.34
Add New Post /wp-admin/post-new.php1,533 ▲1923.25 ▲5.70643.33 ▲33.4567.51 ▲14.67
Media Library /wp-admin/upload.php1,394 ▲64.26 ▲0.0493.80 ▼6.3243.35 ▼0.18
Series of posts /wp-admin/edit-tags.php?taxonomy=series_of_posts1,2372.1426.9631.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=series_of_posts
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the my-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/post-series/series-of-posts.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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: Please add images for these screenshots: #1 (This is a new edit box, which shows up in a right sidebar by your post.), #2 (This is how list of posts looks like after some posts are published.)
Please take inspiration from this readme.txt

post-series/series-of-posts.php 92% from 13 tests

The main PHP script in "Post Series" version 0.6 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("post-series.php" instead of "series-of-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101559
CSS12025

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png65.69KB26.61KB▼ 59.50%
screenshot-1.png22.39KB7.19KB▼ 67.91%