90% aspiesoft-wp-plugin-icons

Code Review | AspieSoft WP Plugin Icons

WordPress plugin AspieSoft WP Plugin Icons scored90%from 54 tests.

About plugin

  • Plugin page: aspiesoft-wp-plug...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Sep 7, 2021
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: aspiesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 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
Installer ran successfully

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

Analyzing server-side resources used by AspieSoft WP Plugin Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.87 ▼2.78
Dashboard /wp-admin3.32 ▲0.0156.26 ▲4.80
Posts /wp-admin/edit.php3.37 ▲0.0150.03 ▲0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.73 ▼9.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.41 ▼2.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AspieSoft WP Plugin Icons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7214.78 ▲0.501.60 ▼0.1742.99 ▲2.99
Dashboard /wp-admin2,210 ▲255.80 ▲0.88111.05 ▼9.9552.64 ▲8.22
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0637.64 ▼2.9337.46 ▲1.51
Add New Post /wp-admin/post-new.php1,521 ▼1323.08 ▲0.09679.66 ▲45.5671.14 ▲16.02
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.02103.36 ▼8.6947.18 ▼1.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

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
3 plugin tags: aspiesoft, plugin, icon

aspiesoft-wp-plugin-icons/aspiesoft-wp-plugin-icons.php Passed 13 tests

"AspieSoft WP Plugin Icons" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Puts icons next to the wordpress plugins in your installed plugins list to make navigation easier.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1142057
PHP2193035
CSS1109

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png8.03KB4.39KB▼ 45.27%
assets/icon-dark.png6.84KB3.36KB▼ 50.84%
assets/icon-light.png5.65KB2.65KB▼ 53.12%