84% wp-solarized

Code Review | Solarized Admin Color Scheme

WordPress plugin Solarized Admin Color Scheme scored84%from 54 tests.

About plugin

  • Plugin page: wp-solarized
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Aug 28, 2015
  • Number of updates: 13
  • Update frequency: every 27.6 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Solarized Admin Color Scheme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.86 ▼2.94
Dashboard /wp-admin3.31 ▲0.0145.11 ▲1.85
Posts /wp-admin/edit.php3.36 ▲0.0047.90 ▲1.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.42 ▼2.43
Media Library /wp-admin/upload.php3.23 ▲0.0032.82 ▼0.47

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Solarized Admin Color Scheme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼0.802.11 ▲0.1144.40 ▲1.27
Dashboard /wp-admin2,206 ▲245.86 ▲0.00106.77 ▲1.8641.16 ▼0.33
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.38 ▼4.4934.33 ▼0.22
Add New Post /wp-admin/post-new.php1,514 ▼017.61 ▲0.02587.82 ▼36.7450.83 ▼3.85
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.1198.65 ▲3.4842.69 ▲1.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-solarized/wp-solarized.php:12

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

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: admin, administration, solarized, color, color scheme...

wp-solarized/wp-solarized.php Passed 13 tests

The entry point to "Solarized Admin Color Scheme" version 0.2.1 is a PHP file that has certain tags in its header comment area
27 characters long description:
Make admin pages solarized.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin424 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS38426345
Sass18955
PHP181117
Bourne Shell1667

PHP code Passed 2 tests

This is a very shot 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.33
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%
Functions2
▷ Named functions2100.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
No PNG files were detected