Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/2012-summary/2012-summary.php+35
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼2.36MB] [CPU: ▼342.88ms] Passed 4 tests
Analyzing server-side resources used by 2012 Summary
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.02 ▼1.50 | 4.42 ▼43.11 |
Dashboard /wp-admin | 2.03 ▼1.38 | 3.69 ▼29.63 |
Posts /wp-admin/edit.php | 2.03 ▼1.61 | 3.89 ▼35.58 |
Add New Post /wp-admin/post-new.php | 2.03 ▼4.94 | 5.69 ▼1,263.20 |
Media Library /wp-admin/upload.php | 2.03 ▼1.26 | 4.12 ▼19.38 |
2012 Summary /wp-admin/index.php?page=y2012summary | 2.03 | 4.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 2012 Summary
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲42 | 15.93 ▲0.32 | 5.65 ▼0.17 | 2.33 ▲0.05 |
Dashboard /wp-admin | 2,876 ▲15 | 6.06 ▼0.11 | 118.80 ▼16.17 | 156.84 ▼5.63 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.24 ▲0.01 | 63.43 ▲1.62 | 142.13 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,671 ▲3 | 17.90 ▼2.87 | 407.54 ▼3.77 | 151.29 ▼6.72 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▼0.01 | 138.69 ▼5.42 | 185.89 ▲2.97 |
2012 Summary /wp-admin/index.php?page=y2012summary | 1,070 | 2.63 | 55.31 | 167.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/2012-summary/2012-summary.php+35
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=y2012summary
- > Warning in wp-content/plugins/2012-summary/2012-summary.php+35
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/index.php?page=y2012summary
- > Notice in wp-content/plugins/2012-summary/2012-summary.php+204
Undefined index: y2012summary_generate
- > GET request to /wp-admin/index.php?page=y2012summary
- > Notice in wp-content/plugins/2012-summary/2012-summary.php+207
Undefined index: y2012summary_draft
SRP 50% from 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 following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/2012-summary/2012-summary.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/index.php?page=y2012summary
- > Network (severe)
https://tools.flattr.net/widgets/thing.html?thing=1093328 - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== 2012-summary ===
)
2012-summary/2012-summary.php Passed 13 tests
The main file in "2012 Summary" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
Get a brief summary of 2012 on your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected291 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 26 | 291 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.69KB | 21.76KB | 0.00% |