78% opcache-reset

Code Review | OPcache Reset

WordPress plugin OPcache Reset scored78%from 54 tests.

About plugin

  • Plugin page: opcache-reset
  • Plugin version: 2.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2018
  • Latest release: Oct 13, 2023
  • Number of updates: 40
  • Update frequency: every 49.0 days
  • Top authors: dvershinin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,679 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.47ms] Passed 4 tests

Server-side resources used by OPcache Reset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.31 ▼11.12
Dashboard /wp-admin3.33 ▲0.0248.43 ▼3.19
Posts /wp-admin/edit.php3.38 ▲0.0250.88 ▼0.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.15 ▼16.52
Media Library /wp-admin/upload.php3.25 ▲0.0236.92 ▼3.03

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

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

Browser metrics Passed 4 tests

OPcache Reset: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.17 ▼0.111.90 ▼0.1543.66 ▼1.13
Dashboard /wp-admin2,195 ▲185.63 ▲0.1092.22 ▼8.8038.12 ▼4.74
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0340.37 ▲3.0635.69 ▼0.39
Add New Post /wp-admin/post-new.php1,526 ▼023.40 ▼0.17688.54 ▼24.4754.19 ▼2.08
Media Library /wp-admin/upload.php1,394 ▼64.12 ▼0.1197.25 ▼18.5547.47 ▼0.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/opcache-reset/opcache-reset.php
  • 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/opcache-reset/opcache-admin.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

opcache-reset/opcache-reset.php Passed 13 tests

The entry point to "OPcache Reset" version 2.1.9 is a PHP file that has certain tags in its header comment area
26 characters long description:
Automatic reset of OPcache

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23149109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.97
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%
Functions6
▷ Named functions6100.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