78% get-next-article

Code Review | Get Next Article

WordPress plugin Get Next Article scored78%from 54 tests.

About plugin

  • Plugin page: get-next-article
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-6.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Apr 11, 2023
  • Number of updates: 20
  • Update frequency: every 75.1 days
  • Top authors: drmikegreen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.19MB] [CPU: ▼18.01ms] Passed 4 tests

Analyzing server-side resources used by Get Next Article
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.6515.94 ▼23.65
Dashboard /wp-admin3.36 ▲0.0243.02 ▼16.29
Posts /wp-admin/edit.php3.19 ▼0.1732.21 ▼14.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.14 ▼17.29
Media Library /wp-admin/upload.php3.28 ▲0.0634.78 ▲0.70
Get Next Article /wp-admin/options-general.php?page=get_next_article_plugin3.2235.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Get Next Article
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.69 ▼0.754.46 ▲2.7740.95 ▼5.05
Dashboard /wp-admin2,210 ▲224.90 ▼0.02106.69 ▼8.7437.18 ▼9.43
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0339.32 ▲3.2635.85 ▼0.24
Add New Post /wp-admin/post-new.php1,536 ▲523.33 ▲4.99626.34 ▲2.7752.59 ▲1.32
Media Library /wp-admin/upload.php1,392 ▲44.31 ▲0.0897.50 ▲1.5545.55 ▲0.90
Get Next Article /wp-admin/options-general.php?page=get_next_article_plugin8552.2129.5950.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=get_next_article_plugin
    • > Warning in wp-content/plugins/get-next-article/get-next-article-class.inc.php+90
    Invalid argument supplied for foreach()

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/get-next-article/get-next-article-class.inc.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: next page, next post, next article

get-next-article/get-next-article.php 92% from 13 tests

The principal PHP file in "Get Next Article" v. 1.3.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 453 characters long)

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
Success! There were no dangerous files found in this plugin366 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33130242
JavaScript22621124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods211.76%
▷ Private methods15.88%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin