89% atec-cache-apcu

Code Review | atec Cache APCu

WordPress plugin atec Cache APCu scored89%from 54 tests.

About plugin

  • Plugin page: atec-cache-apcu
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2023
  • Latest release: Jun 14, 2023
  • Number of updates: 5
  • Update frequency: every 7.8 days
  • Top authors: docjojo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /564 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by atec Cache APCu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.70 ▲1.45
Dashboard /wp-admin3.34 ▲0.0346.96 ▼2.58
Posts /wp-admin/edit.php3.39 ▲0.0348.40 ▼4.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.46 ▼14.29
Media Library /wp-admin/upload.php3.26 ▲0.0337.21 ▲2.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for atec Cache APCu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7813.30 ▼1.351.68 ▼0.1932.90 ▼5.71
Dashboard /wp-admin2,244 ▲564.89 ▲0.00101.06 ▼2.0743.46 ▼0.50
Posts /wp-admin/edit.php2,128 ▲362.02 ▼0.0435.67 ▼6.2235.14 ▼0.73
Add New Post /wp-admin/post-new.php1,531 ▼1123.05 ▲4.93667.56 ▲55.3756.78 ▼6.07
Media Library /wp-admin/upload.php1,423 ▲324.25 ▼0.0194.66 ▼3.9338.50 ▼3.49

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: apcu object and page cache

atec-cache-apcu/atec-cache-apcu.php 85% from 13 tests

This is the main PHP file of "atec Cache APCu" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.2")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "5.2")

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
There were no executable files found in this plugin1,109 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity23.83
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods11.39%
▷ Public methods3447.22%
▷ Protected methods00.00%
▷ Private methods3852.78%
▷ Named functions3589.74%
▷ Anonymous functions410.26%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin