84% apc-cache-purge

Code Review | APC Cache Purge

WordPress plugin APC Cache Purge scored84%from 54 tests.

About plugin

  • Plugin page: apc-cache-purge
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4
  • WordPress version: 6.3.1
  • First release: May 12, 2015
  • Latest release: Nov 29, 2015
  • Number of updates: 6
  • Update frequency: every 33.5 days
  • Top authors: 2020media (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,273 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 gracefully, with no errors

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

A check of server-side resources used by APC Cache Purge
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.75 ▼10.53
Dashboard /wp-admin3.32 ▲0.0146.08 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.0157.73 ▲6.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.08 ▲4.35
Media Library /wp-admin/upload.php3.24 ▲0.0134.21 ▲0.97
Purge APC /wp-admin/tools.php?page=flush_php_apc3.2132.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for APC Cache Purge
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.15 ▼1.101.57 ▼0.1940.99 ▼1.92
Dashboard /wp-admin2,210 ▲255.92 ▲0.03105.32 ▲3.4443.47 ▲1.78
Posts /wp-admin/edit.php2,093 ▲72.03 ▲0.0238.38 ▼0.7435.26 ▼1.29
Add New Post /wp-admin/post-new.php1,546 ▲3223.04 ▲5.51592.35 ▼11.2557.91 ▲9.29
Media Library /wp-admin/upload.php1,392 ▲104.18 ▼0.0393.80 ▼4.2942.00 ▼0.27
Purge APC /wp-admin/tools.php?page=flush_php_apc7661.9825.3124.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apc-cache-purge/apc-cache-purge.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: apc, purge, cache

apc-cache-purge/apc-cache-purge.php 92% from 13 tests

The main PHP script in "APC Cache Purge" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141530

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.31
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin