83% mp-post-navigation-same-category

Code Review | MP Post Navigation

WordPress plugin MP Post Navigation scored83%from 54 tests.

About plugin

  • Plugin page: mp-post-navigatio...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2016
  • Latest release: Jan 25, 2017
  • Number of updates: 7
  • Update frequency: every 11.0 days
  • Top authors: manipovore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by MP Post Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.73 ▼2.41
Dashboard /wp-admin3.31 ▲0.0149.12 ▼0.92
Posts /wp-admin/edit.php3.37 ▲0.0148.31 ▲0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.18 ▼21.20
Media Library /wp-admin/upload.php3.24 ▲0.0135.56 ▼0.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by MP Post Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.34 ▲0.241.91 ▲0.2344.72 ▲2.44
Dashboard /wp-admin2,195 ▲155.58 ▼0.0784.16 ▼20.4939.61 ▼5.40
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0936.62 ▼1.7031.25 ▼7.05
Add New Post /wp-admin/post-new.php1,535 ▲923.33 ▲0.47685.04 ▲31.1667.76 ▲7.99
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.1197.72 ▼8.4146.52 ▲0.84

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp-post-navigation-same-category/mp-post-navigation.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Contributors: Contributors not specified
You can look at the official readme.txt

mp-post-navigation-same-category/mp-post-navigation.php 92% from 13 tests

The primary PHP file in "MP Post Navigation" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mp-post-navigation-same-category.php" instead of "mp-post-navigation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS121047
PHP1121031

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin