84% amimoto-dashboard

Code Review | AMIMOTO Plugin Dashboard

WordPress plugin AMIMOTO Plugin Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: amimoto-dashboard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: May 27, 2021
  • Number of updates: 25
  • Update frequency: every 71.7 days
  • Top authors: hideokamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /106,037 total downloads


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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.11ms] Passed 4 tests

This is a short check of server-side resources used by AMIMOTO Plugin Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0151.18 ▲4.13
Dashboard /wp-admin3.49 ▲0.1948.12 ▼4.03
Posts /wp-admin/edit.php3.58 ▲0.2247.39 ▼1.88
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.17 ▲1.32
Media Library /wp-admin/upload.php3.39 ▲0.1640.25 ▲4.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AMIMOTO Plugin Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.24 ▼1.152.05 ▼0.3040.63 ▼3.85
Dashboard /wp-admin2,220 ▲294.82 ▼1.08112.11 ▲12.3345.96 ▲6.25
Posts /wp-admin/edit.php2,103 ▲112.01 ▼0.0440.72 ▼0.8535.61 ▼2.82
Add New Post /wp-admin/post-new.php1,526 ▼717.70 ▼5.41670.16 ▼29.6658.81 ▲2.16
Media Library /wp-admin/upload.php1,405 ▲174.29 ▲0.0893.25 ▼17.0540.30 ▼7.88

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/NCC/Plugin_Settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/WP/Plugins.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/amimoto-dashboard/amimoto-plugin-dashboard.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/C3/Plugin_Settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/C3/Invalidation_Form.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/WP/AMIMOTO_Managed.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AMIMOTO_Dashboard\\Templates\\path_join() in wp-content/plugins/amimoto-dashboard/templates/Plugin_Sidebar.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/Plugin_Header.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: admin, amimoto

amimoto-dashboard/amimoto-plugin-dashboard.php 85% from 13 tests

The main PHP file in "AMIMOTO Plugin Dashboard" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("amimoto-dashboard.php" instead of "amimoto-plugin-dashboard.php")

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
Good job! No executable or dangerous file extensions detected1,577 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity14.33
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods610.00%
▷ Public methods5896.67%
▷ Protected methods00.00%
▷ Private methods23.33%
▷ Named functions250.00%
▷ Anonymous functions250.00%
▷ Global constants323.08%
▷ Class constants1076.92%
▷ Public constants10100.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
5 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/banner-1544x500.png63.80KB30.25KB▼ 52.59%
.wordpress-org/banner-772x250.png12.58KB6.06KB▼ 51.82%
.wordpress-org/icon-256x256.png1.53KB0.29KB▼ 80.68%
.wordpress-org/icon-128x128.png1.23KB0.20KB▼ 83.97%
assets/amimoto.png8.33KB3.68KB▼ 55.82%