89% thememiles-toolset

Code Review | Thememiles Toolset

WordPress plugin Thememiles Toolset scored89%from 54 tests.

About plugin

  • Plugin page: thememiles-toolset
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 29, 2020
  • Latest release: Jun 12, 2023
  • Number of updates: 33
  • Update frequency: every 36.3 days
  • Top authors: thememiles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /24,024 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.00ms] Passed 4 tests

Analyzing server-side resources used by Thememiles Toolset
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.82 ▼4.52
Dashboard /wp-admin3.39 ▲0.0942.29 ▼7.29
Posts /wp-admin/edit.php3.51 ▲0.1546.71 ▼0.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0989.92 ▲0.38
Media Library /wp-admin/upload.php3.31 ▲0.0938.56 ▲6.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thememiles Toolset
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▼0.141.66 ▼0.2939.03 ▼5.05
Dashboard /wp-admin2,203 ▲155.83 ▲0.0292.70 ▼23.7140.01 ▼7.26
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0538.69 ▲0.3735.78 ▼1.33
Add New Post /wp-admin/post-new.php1,519 ▼923.08 ▲0.39677.52 ▲87.9650.35 ▼1.17
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0494.21 ▼3.1941.70 ▼1.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Thememiles Toolseet) image not found
The official readme.txt is a good inspiration

thememiles-toolset/thememiles-toolset.php 92% from 13 tests

The main file in "Thememiles Toolset" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected689 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP414642574
CSS18062
JSON300030
JavaScript15523

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.00
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.85MB with 0.58MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/demo/wellbeing-hospital/demo-1/demo.png870.12KB277.92KB▼ 68.06%