83% cream6-admin-theme

Code Review | Cream6 Admin Theme

WordPress plugin Cream6 Admin Theme scored83%from 54 tests.

About plugin

  • Plugin page: cream6-admin-theme
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2013
  • Latest release: Nov 2, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: SimonEbeling (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /6,764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.52ms] Passed 4 tests

This is a short check of server-side resources used by Cream6 Admin Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.05 ▼1.09
Dashboard /wp-admin3.31 ▼0.0449.09 ▼11.88
Posts /wp-admin/edit.php3.36 ▲0.0043.57 ▼4.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.75 ▼16.17
Media Library /wp-admin/upload.php3.24 ▲0.0035.01 ▲2.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Cream6 Admin Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.33 ▼0.261.87 ▲0.2061.41 ▲18.60
Dashboard /wp-admin2,158 ▼225.55 ▼0.1289.87 ▲1.3338.86 ▼2.44
Posts /wp-admin/edit.php2,078 ▼221.98 ▼0.0436.99 ▲2.1448.54 ▲11.53
Add New Post /wp-admin/post-new.php1,537 ▼018.54 ▲0.57607.26 ▼41.7553.34 ▼20.66
Media Library /wp-admin/upload.php1,366 ▼344.23 ▲0.0794.24 ▼1.5347.21 ▲2.00

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cream6-admin-theme/functions.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Screenshots: Add images for these screenshots: #1 (The Dashboard), #2 (All posts (width: 600px)), #3 (Add new post), #4 (Add new page (width: 320px))
You can take inspiration from this readme.txt

cream6-admin-theme/functions.php 92% from 13 tests

The principal PHP file in "Cream6 Admin Theme" v. 0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cream6-admin-theme.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected704 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS12213698
PHP13306

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png60.27KB29.08KB▼ 51.76%
screenshot-1.png113.05KB54.80KB▼ 51.53%
screenshot-2.png26.45KB12.74KB▼ 51.83%
screenshot-4.png25.43KB12.03KB▼ 52.71%