83% webseo-admin-theme

Code Review | Webseo Admin Theme

WordPress plugin Webseo Admin Theme scored 83% from 54 tests.

About plugin

  • Plugin page: webseo-admin-theme
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 16, 2017
  • Latest release: Dec 18, 2017
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: nguyenhuytap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 5,147 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.92ms] Passed 4 tests

Analyzing server-side resources used by Webseo Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0241.66 ▲0.12
Dashboard /wp-admin3.37 ▲0.0646.32 ▼3.92
Posts /wp-admin/edit.php3.50 ▲0.1451.29 ▲4.67
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.42 ▼4.26
Media Library /wp-admin/upload.php3.43 ▲0.2133.91 ▲4.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webseo Admin Theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,766 ▲3114.39 ▲0.081.78 ▼0.1038.34 ▼2.73
Dashboard /wp-admin2,155 ▼335.63 ▲0.7089.51 ▼27.2131.74 ▼12.21
Posts /wp-admin/edit.php2,085 ▼72.02 ▲0.0639.45 ▼0.6033.10 ▼3.45
Add New Post /wp-admin/post-new.php1,528 ▲823.50 ▲0.44636.91 ▼1.6458.37 ▲2.22
Media Library /wp-admin/upload.php1,376 ▼94.22 ▼0.0299.01 ▼1.7739.24 ▼4.45

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webseo-admin-theme/webseo-admin-theme.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function webseo_get_user_admin_color() in wp-content/plugins/webseo-admin-theme/css/dynamic.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (You can embed source code from GitHub Gist.), #2 (You can write source code on your own blog post.)
Please take inspiration from this readme.txt

webseo-admin-theme/webseo-admin-theme.php Passed 13 tests

The primary PHP file in "Webseo Admin Theme" version 2.1 is used by WordPress to initiate all plugin functionality
64 characters long description:
Plugin tùy chỉnh trang quản trị Wordpress - Webseo.com.vn

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,133 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS227411,571
Sass166301,462
JavaScript1131956
PHP25944

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.27MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/logowebseo.png16.28KB1.24KB▼ 92.39%
image/bg_login.png255.11KB232.59KB▼ 8.83%