10% wp-admin-cache

Code Review | WP Admin Cache

WordPress plugin WP Admin Cache scored10%from 54 tests.

About plugin

  • Plugin page: wp-admin-cache
  • Plugin version: 0.2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Jun 13, 2020
  • Number of updates: 21
  • Update frequency: every 22.1 days
  • Top authors: grfstudio (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /6,951 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-admin-cache/index.php+41
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.84MB] [CPU: ▼49.16ms] Passed 4 tests

Analyzing server-side resources used by WP Admin Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.58 ▼10.26
Dashboard /wp-admin2.11 ▼1.207.86 ▼39.37
Posts /wp-admin/edit.php2.11 ▼1.257.41 ▼41.35
Add New Post /wp-admin/post-new.php2.11 ▼3.787.89 ▼87.61
Media Library /wp-admin/upload.php2.11 ▼1.126.72 ▼28.30
WP Admin Cache /wp-admin/options-general.php?page=wp-admin-cache2.117.14

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.37 ▼1.011.46 ▼0.7344.68 ▲0.92
Dashboard /wp-admin2,217 ▲295.88 ▲0.8096.28 ▼6.8143.63 ▼0.18
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0339.62 ▼1.9634.36 ▼2.91
Add New Post /wp-admin/post-new.php1,530 ▼1218.53 ▲0.34595.13 ▼12.5454.02 ▼7.22
Media Library /wp-admin/upload.php1,396 ▲84.19 ▼0.0899.42 ▲1.8540.81 ▼5.16
WP Admin Cache /wp-admin/options-general.php?page=wp-admin-cache8932.0423.1825.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wp-admin-cache/index.php+41
    Trying to access array offset on value of type null
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-admin-cache
    • > Notice in wp-content/plugins/wp-admin-cache/settings.php+66
    Trying to access array offset on value of type null

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: admin performance, slow admin, woocommerce performance, admin speed, slow woocommerce...

wp-admin-cache/index.php 92% from 13 tests

This is the main PHP file of "WP Admin Cache" version 0.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-cache.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected320 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33616233
JavaScript19046
PO File1111239
CSS1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.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