84% panomity-wp-cache

Code Review | PANOMITY WP CACHE

WordPress plugin PANOMITY WP CACHE scored84%from 54 tests.

About plugin

  • Plugin page: panomity-wp-cache
  • Plugin version: 8.1.2
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Mar 10, 2023
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: panomity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /363 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.29ms] Passed 4 tests

An overview of server-side resources used by PANOMITY WP CACHE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.32 ▼8.70
Dashboard /wp-admin3.34 ▲0.0345.82 ▼6.31
Posts /wp-admin/edit.php3.39 ▲0.0347.39 ▼2.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.41 ▼19.51
Media Library /wp-admin/upload.php3.26 ▲0.0236.33 ▼1.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by PANOMITY WP CACHE
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.101.64 ▼0.4241.20 ▼9.43
Dashboard /wp-admin2,209 ▲215.90 ▲0.7998.66 ▼17.8939.68 ▼6.24
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.12 ▲1.0234.53 ▲2.14
Add New Post /wp-admin/post-new.php1,535 ▲223.06 ▼0.01637.75 ▲24.1351.31 ▲1.71
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0597.35 ▼5.5542.04 ▼1.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/panomity-wp-cache/admin/partials/panomity-wp-cache-admin-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: page speed, speed, caching, speed optimization, performance...

panomity-wp-cache/panomity-wp-cache.php Passed 13 tests

The main PHP file in "PANOMITY WP CACHE" ver. 8.1.2 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
A simple full page cache for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin646 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File49696369
PHP12130518271
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.88
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods515.15%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png9.67KB5.01KB▼ 48.17%