84% accesspress-custom-css

Code Review | AccessPress Custom CSS

WordPress plugin AccessPress Custom CSS scored 84% from 54 tests.

About plugin

  • Plugin page: accesspress-custo...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Apr 17, 2015
  • Latest release: Dec 6, 2021
  • Number of updates: 28
  • Update frequency: every 86.6 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active / 130,444 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by AccessPress Custom CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0851.95 ▼0.17
Dashboard /wp-admin3.46 ▲0.0534.26 ▲0.76
Posts /wp-admin/edit.php3.69 ▲0.0537.71 ▼0.21
Add New Post /wp-admin/post-new.php6.93 ▼0.0494.08 ▼1,202.29
Media Library /wp-admin/upload.php3.34 ▲0.0426.58 ▼3.82
AccessPress Custom CSS /wp-admin/options-general.php?page=accesspress-custom-css3.3322.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AccessPress Custom CSS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5615.98 ▲0.035.66 ▼0.622.68 ▲0.63
Dashboard /wp-admin2,893 ▲355.97 ▼0.11120.47 ▼8.18149.55 ▼11.72
Posts /wp-admin/edit.php2,693 ▲23.25 ▲0.0261.34 ▼3.05138.53 ▲5.46
Add New Post /wp-admin/post-new.php1,693 ▼5920.93 ▼0.14446.37 ▲2.53156.88 ▼1.86
Media Library /wp-admin/upload.php1,703 ▲55.53 ▼0.02138.85 ▼0.33178.94 ▼10.74
AccessPress Custom CSS /wp-admin/options-general.php?page=accesspress-custom-css1,5638.90177.12172.88

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
  • Zombie WordPress options detected upon uninstall: 1 option
    • apccss-settings

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/accesspress-custom-css/accesspress-custom-css.php
    • > /wp-content/plugins/accesspress-custom-css/inc/backend/apccss-about.php
    • > /wp-content/plugins/accesspress-custom-css/inc/backend/activation.php
    • > /wp-content/plugins/accesspress-custom-css/inc/backend/main-page.php
    • > /wp-content/plugins/accesspress-custom-css/inc/backend/save-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration Passed 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
10 plugin tags: custom style, style, css, own style, styles...

accesspress-custom-css/accesspress-custom-css.php Passed 13 tests

The main file in "AccessPress Custom CSS" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
A plugin to add custom css to a site.

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
Success! There were no dangerous files found in this plugin5,556 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/customize.png24.05KB8.41KB▼ 65.05%
images/plugin.png12.50KB5.31KB▼ 57.50%
images/theme.png52.01KB17.38KB▼ 66.59%