Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼5.73ms] Passed 4 tests
Server-side resources used by Local Magic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 34.29 ▼8.04 |
Dashboard /wp-admin | 3.67 ▲0.33 | 51.85 ▼6.85 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 47.45 ▲1.51 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 79.07 ▼8.85 |
Media Library /wp-admin/upload.php | 3.60 ▲0.36 | 34.63 ▲0.84 |
Server storage [IO: ▲3.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_mrylm_cities |
wp_mrylm_setting |
wp_mrylm_jobs |
wp_mrylm_news |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Local Magic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.36 ▲0.01 | 2.15 ▲0.37 | 44.86 ▲2.06 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.16 | 92.04 ▲2.85 | 68.69 ▲29.09 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▼0.03 | 36.78 ▲0.68 | 32.57 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.15 ▼0.05 | 759.44 ▲119.07 | 52.70 ▲1.15 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.21 ▼0.02 | 102.20 ▼2.81 | 71.59 ▲29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/local-magic/deactivate.php:4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/local-magic/deactivate.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #7 is missing in local-magic/assets to your readme.txt
- Screenshots: These screenshots do not have images: #1 (Local Magic Plugin Setting), #2 (Local Magic City/Keyword List in App)
local-magic/local-magic.php 92% from 13 tests
The main PHP file in "Local Magic" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 266 characters long)
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
There were no executable files found in this plugin3,177 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 879 | 720 | 3,176 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 42.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 38 | 77.55% |
▷ Protected methods | 1 | 2.04% |
▷ Private methods | 10 | 20.41% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-lm-light.png | 1.23KB | 0.47KB | ▼ 61.72% |
assets/images/light-angle-down.png | 1.07KB | 0.37KB | ▼ 64.89% |
assets/images/local-magic-logo.png | 11.19KB | 6.52KB | ▼ 41.72% |
assets/images/brifcase.png | 1.15KB | 0.49KB | ▼ 57.37% |
assets/images/icon-lm-dark.png | 1.23KB | 0.47KB | ▼ 61.81% |