89% next-page-caching

Code Review | Next Page Caching

WordPress plugin Next Page Caching scored89%from 54 tests.

About plugin

  • Plugin page: next-page-caching
  • Plugin version: 0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: Mar 30, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bfintal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.90ms] Passed 4 tests

An overview of server-side resources used by Next Page Caching
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.80 ▼0.28
Dashboard /wp-admin3.40 ▲0.0543.77 ▼18.08
Posts /wp-admin/edit.php3.51 ▲0.1545.66 ▼0.02
Add New Post /wp-admin/post-new.php6.00 ▲0.1181.30 ▼13.22
Media Library /wp-admin/upload.php3.32 ▲0.0934.51 ▲1.58
Next Page Caching /wp-admin/options-general.php?page=next-page-caching3.2931.87

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Next Page Caching
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.10 ▼0.465.70 ▲3.4742.45 ▼2.87
Dashboard /wp-admin2,196 ▲195.51 ▼0.0987.14 ▼13.6339.90 ▼9.65
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0335.68 ▼0.9431.54 ▼5.89
Add New Post /wp-admin/post-new.php6,265 ▲4,73926.15 ▲2.57859.09 ▲187.1270.97 ▲14.39
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0494.18 ▼2.9940.72 ▼4.11
Next Page Caching /wp-admin/options-general.php?page=next-page-caching9221.9622.6840.51

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: prefetch, preconnect, caching, optimize, performance...

next-page-caching/class-plugin.php 77% from 13 tests

The main file in "Next Page Caching" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("next-page-caching.php" instead of "class-plugin.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,259 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5166311762
PHP778122455
CSS13042

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin