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.09MB] [CPU: ▼2.30ms] Passed 4 tests
Analyzing server-side resources used by MoeNet Public CDN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.87 ▲4.91 |
Dashboard /wp-admin | 3.41 ▲0.10 | 43.02 ▼7.88 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.41 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 85.16 ▼0.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 31.82 ▼0.19 |
MoeCDN /wp-admin/options-general.php?page=moecdn | 3.26 | 30.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
moecdn_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by MoeNet Public CDN
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.60 ▼0.78 | 1.82 ▼0.07 | 37.80 ▼6.54 |
Dashboard /wp-admin | 2,213 ▲25 | 5.89 ▲0.97 | 106.32 ▲1.02 | 40.43 ▼2.50 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.01 | 39.48 ▼4.93 | 36.63 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 18.07 ▼5.29 | 608.32 ▼5.04 | 56.46 ▲1.79 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.17 ▼0.10 | 93.63 ▼6.22 | 42.30 ▼3.49 |
MoeCDN /wp-admin/options-general.php?page=moecdn | 843 | 2.04 | 25.23 | 70.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- moecdn_options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/moecdn/moecdn.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== moecdn ===
) - Screenshots: Screenshot #1 (The setting page.) image missing
moecdn/moecdn.php Passed 13 tests
"MoeNet Public CDN" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
加速Gravatar/GoogleAPIs/WordPress.com等由于众所周知的原因而在中国无法访问的资源
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
There were no executable files found in this plugin156 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 16 | 156 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 14 | 100.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 3 | 21.43% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin