90% content-no-cache

Code Review | Content No Cache: prevent specific content from being cached

WordPress plugin Content No Cache: prevent specific content from being cached scored90%from 54 tests.

About plugin

  • Plugin page: content-no-cache
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 2, 2022
  • Latest release: Nov 4, 2023
  • Number of updates: 43
  • Update frequency: every 14.2 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /3,080 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Content No Cache: prevent specific content from being cached
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.23 ▼4.20
Dashboard /wp-admin3.33 ▲0.0355.47 ▲6.65
Posts /wp-admin/edit.php3.38 ▲0.0345.94 ▼3.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.85 ▼8.26
Media Library /wp-admin/upload.php3.26 ▲0.0333.24 ▼2.20
Content No Cache /wp-admin/edit.php?post_type=eos_dyn_content3.3035.32
Add New /wp-admin/post-new.php?post_type=eos_dyn_content3.3845.85

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Content No Cache: prevent specific content from being cached: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8314.25 ▼0.112.00 ▲0.1542.75 ▲0.42
Dashboard /wp-admin2,222 ▲425.62 ▼0.0590.80 ▼5.6838.65 ▼2.19
Posts /wp-admin/edit.php2,127 ▲271.97 ▲0.0334.60 ▼3.8833.44 ▼5.09
Add New Post /wp-admin/post-new.php1,551 ▲2523.32 ▲0.04643.93 ▼27.4856.29 ▲4.01
Media Library /wp-admin/upload.php1,430 ▲274.19 ▼0.0198.26 ▼1.6541.34 ▼3.88
Content No Cache /wp-admin/edit.php?post_type=eos_dyn_content1,0961.9730.1631.41
Add New /wp-admin/post-new.php?post_type=eos_dyn_content2,1817.68171.5670.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
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)
There were no browser issues found

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
3 plugin tags: issues, cache, dynamic content

content-no-cache/content-no-cache.php Passed 13 tests

This is the main PHP file of "Content No Cache: prevent specific content from being cached" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Prevent page cache from loading dynamic content

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
No dangerous file extensions were detected253 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51828253

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions15
▷ Named functions960.00%
▷ Anonymous functions640.00%
Constants1
▷ Global constants1100.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