83% nocacheadmincaats

Code Review | NOCacheAdminca

WordPress plugin NOCacheAdminca scored83%from 54 tests.

About plugin

  • Plugin page: nocacheadmincaats
  • Plugin version: 4.7.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 28, 2017
  • Latest release: Sep 17, 2023
  • Number of updates: 53
  • Update frequency: every 42.3 days
  • Top authors: aleksats (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.29ms] Passed 4 tests

A check of server-side resources used by NOCacheAdminca
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.28 ▼1.43
Dashboard /wp-admin3.31 ▼0.0346.61 ▼16.81
Posts /wp-admin/edit.php3.36 ▲0.0152.48 ▲3.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.69 ▼10.41
Media Library /wp-admin/upload.php3.23 ▲0.0137.15 ▼0.51

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for NOCacheAdminca
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.315.27 ▲3.3040.88 ▼7.55
Dashboard /wp-admin2,209 ▲214.85 ▼0.03111.96 ▼2.2640.78 ▼1.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0341.14 ▼0.2236.14 ▼0.10
Add New Post /wp-admin/post-new.php1,533 ▲13623.13 ▲5.20683.92 ▲39.6856.36 ▲0.93
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.00101.96 ▼3.6744.34 ▼2.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nocacheadmincaats/nocacheadmincaats.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nocacheadmincaats/menu-cnop/menu.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Plugin settings on standart WordPress Settings > Discussion page.), #2 ()
  • Plugin Name: Please specify the plugin name on the first line ( === nocacheadmincaats === )
The official readme.txt is a good inspiration

nocacheadmincaats/nocacheadmincaats.php 92% from 13 tests

"NOCacheAdminca" version 4.7.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 281 characters long)

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 plugin43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311843

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin