90% atec-cache-info

Code Review | atec Cache Info

WordPress plugin atec Cache Info scored 90% from 54 tests.

About plugin

  • Plugin page: atec-cache-info
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 23, 2023
  • Latest release: Jul 21, 2023
  • Number of updates: 14
  • Update frequency: every 4.4 days
  • Top authors: docjojo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by atec Cache Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.79 ▼5.78
Dashboard /wp-admin3.32 ▲0.0146.67 ▼3.27
Posts /wp-admin/edit.php3.37 ▲0.0149.63 ▼4.11
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.24 ▲6.83
Media Library /wp-admin/upload.php3.24 ▲0.0134.92 ▲3.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for atec Cache Info
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.35 ▼1.241.65 ▼0.2433.47 ▼10.18
Dashboard /wp-admin2,240 ▲525.86 ▼0.19106.49 ▼13.0540.98 ▼4.62
Posts /wp-admin/edit.php2,127 ▲382.08 ▲0.0439.24 ▲6.1638.12 ▲1.60
Add New Post /wp-admin/post-new.php1,531 ▼323.26 ▲0.16660.82 ▼34.2761.41 ▲14.63
Media Library /wp-admin/upload.php1,422 ▲374.32 ▲0.1198.55 ▲0.8740.17 ▼7.23

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: memcached, redis, opcache, wp-object-cache, sqlite-object-cache...

atec-cache-info/atec-cache-info.php Passed 13 tests

Analyzing the main PHP file in "atec Cache Info" version 1.1.5
104 characters long description:
atec Cache Info & Statistics (OPcache, WP-object-cache, APCu, Memcached, Redis and SQLite-object-cache )

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected497 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45516481
CSS301014
SVG2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity13.80
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods120.00%
▷ Protected methods00.00%
▷ Private methods480.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot_1.png214.66KB114.02KB▼ 46.88%