Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼144.46ms] Passed 4 tests
Server-side resources used by mView 豆瓣电影
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 38.01 ▲17.01 |
Dashboard /wp-admin | 3.13 ▲0.07 | 45.20 ▼6.20 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 44.84 ▼8.61 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 95.86 ▼562.47 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 32.51 ▼0.55 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for mView 豆瓣电影
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.76 ▼0.23 | 10.71 ▼1.53 | 51.86 ▲2.81 |
Dashboard /wp-admin | 2,978 ▲41 | 5.87 ▼0.04 | 143.73 ▼9.62 | 113.75 ▼19.57 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.01 | 68.99 ▲0.64 | 91.98 ▼8.40 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.51 ▼0.37 | 370.68 ▼10.47 | 115.72 ▲2.09 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.01 | 150.74 ▼13.78 | 125.88 ▲6.50 |
mView /wp-admin/core.php | 26 | 0.90 | 0.04 | 11.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/mview/mview.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mview/libs/setting.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/core.php
- > Network (severe)
wp-admin/core.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
1 plugin tags: mview
mview/mview.php Passed 13 tests
Analyzing the main PHP file in "mView 豆瓣电影" version 1.0.3
32 characters long description:
mView plugin build for wordpress
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 detected19,657 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 5,056 | 4,790 | 19,068 |
PHP | 4 | 86 | 38 | 572 |
JSON | 2 | 0 | 0 | 16 |
CSS | 1 | 0 | 7 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected