84% wp-administration-style

Code Review | WP Administration Style

WordPress plugin WP Administration Style scored84%from 54 tests.

About plugin

  • Plugin page: wp-administration...
  • Plugin version: 6.16.0
  • PHP compatiblity: 7.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Aug 31, 2020
  • Latest release: Aug 19, 2023
  • Number of updates: 91
  • Update frequency: every 12.5 days
  • Top authors: pixer (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

3,000+ active /23,030 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.00MB] [CPU: ▼4.62ms] Passed 4 tests

Analyzing server-side resources used by WP Administration Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.77 ▼3.03
Dashboard /wp-admin3.31 ▲0.0045.73 ▼6.29
Posts /wp-admin/edit.php3.36 ▲0.0048.82 ▼1.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.38 ▼7.77
Media Library /wp-admin/upload.php3.23 ▲0.0036.78 ▲0.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Administration Style
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.69 ▼0.981.77 ▼0.0338.74 ▼13.47
Dashboard /wp-admin2,203 ▲184.88 ▼0.94110.71 ▲2.6341.41 ▼3.70
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0241.26 ▲5.8634.42 ▲0.07
Add New Post /wp-admin/post-new.php1,514 ▼1917.71 ▼5.36617.49 ▼74.4243.23 ▼8.42
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0298.36 ▼3.5144.96 ▲1.23

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_ADMINISTRATION_STYLE\\Wp_Administration_Style_Globals' not found in wp-content/plugins/wp-administration-style/includes/core.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: farsi font, farsi ui, farsi, better ux, farsi panel...

wp-administration-style/wp-administration-style.php 92% from 13 tests

"WP Administration Style" version 6.16.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,063 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS1125623,303
HTML122538
JavaScript21111124
PHP4282498

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin