90% pryc-wp-add-support-for-admincss

Code Review | PRyC WP: Add support for admin.css

WordPress plugin PRyC WP: Add support for admin.css scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-add-suppo...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Jun 20, 2023
  • Number of updates: 18
  • Update frequency: every 173.7 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by PRyC WP: Add support for admin.css
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.31 ▼5.06
Dashboard /wp-admin3.31 ▲0.0148.96 ▼4.96
Posts /wp-admin/edit.php3.36 ▲0.0057.54 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.80 ▲1.03
Media Library /wp-admin/upload.php3.23 ▲0.0037.07 ▲2.33

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/pryc-wp-add-support-for-admincss/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/admin.css
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PRyC WP: Add support for admin.css
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.001.75 ▼0.8537.91 ▼5.96
Dashboard /wp-admin2,196 ▲195.64 ▲0.0391.91 ▼12.4540.33 ▼8.77
Posts /wp-admin/edit.php2,101 ▲41.99 ▼0.0141.40 ▲3.7338.96 ▲3.00
Add New Post /wp-admin/post-new.php1,527 ▲123.05 ▼0.39649.39 ▼24.4858.98 ▲7.81
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0698.24 ▼15.4443.41 ▼4.37

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
The SRP test was a success

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: css, admincss, wordpress, admin, style...

pryc-wp-add-support-for-admincss/pryc-wp-add-support-for-admincss.php Passed 13 tests

Analyzing the main PHP file in "PRyC WP: Add support for admin.css" version 1.1.4
55 characters long description:
Add support for admin.css @ THEME_DIR (normal or child)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111013

PHP code Passed 2 tests

A short review 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%
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 were not PNG files found in your plugin