Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼16.80ms] Passed 4 tests
Server-side resources used by Newscodes - News, Magazine and Blog Elements - Free Version
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 44.60 ▼1.26 |
Dashboard /wp-admin | 3.88 ▲0.58 | 35.35 ▼22.22 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 38.68 ▼18.18 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 76.93 ▼25.55 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 37.07 ▲1.66 |
Newscodes /wp-admin/options-general.php?page=newscodes_settings | 3.87 | 32.54 |
Server storage [IO: ▲15.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 336 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Newscodes - News, Magazine and Blog Elements - Free Version
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.49 ▼1.05 | 9.15 ▲7.46 | 44.28 ▲2.80 |
Dashboard /wp-admin | 2,203 ▲23 | 5.49 ▼0.17 | 82.28 ▼4.67 | 41.75 ▲1.66 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.97 ▼0.06 | 36.76 ▼3.76 | 32.62 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.04 ▲0.10 | 758.42 ▲114.77 | 54.45 ▲1.71 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.22 ▲0.00 | 101.40 ▲1.12 | 42.15 ▼8.79 |
Newscodes /wp-admin/options-general.php?page=newscodes_settings | 1,296 | 2.79 | 41.67 | 32.38 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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/options-general.php?page=newscodes_settings
- > Deprecated in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/nc-admin.php+2318
Non-static method NewsCodes::plugin_url() should not be called statically
- > GET request to /wp-admin/options-general.php?page=newscodes_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=newscodes_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/newscodes-news-magazine-and-blog-elements/templates/loop-end.php
- > /wp-content/plugins/newscodes-news-magazine-and-blog-elements/templates/loop-start.php
- 63× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Less_Exception_Parser' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Exception/Compiler.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Tree/Condition.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Tree/Alpha.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Tree/Call.php:10
- > PHP Fatal error
Uncaught Error: Class 'Less_Visitor' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Visitor/joinSelector.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Tree' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Tree/Operation.php:9
- > PHP Fatal error
Uncaught Error: Class 'Less_Visitor' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/VisitorReplacing.php:9
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Exception/Chunk.php on line 99
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Exception/Chunk.php on line 89
- > PHP Fatal error
Uncaught Error: Class 'Less_Exception_Parser' not found in wp-content/plugins/newscodes-news-magazine-and-blog-elements/includes/less/lib/Less/Exception/Chunk.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
newscodes-news-magazine-and-blog-elements/newscodes.php 85% from 13 tests
The primary PHP file in "Newscodes - News, Magazine and Blog Elements - Free Version" version 2.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("newscodes-news-magazine-and-blog-elements.php" instead of "newscodes.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected118,718 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 52 | 2 | 0 | 101,613 |
PHP | 84 | 3,694 | 2,214 | 13,247 |
CSS | 9 | 271 | 142 | 2,057 |
JavaScript | 4 | 365 | 10 | 1,032 |
LESS | 11 | 114 | 65 | 769 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 28.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 1 | 1.35% |
▷ Concrete classes | 73 | 98.65% |
▷ Final classes | 1 | 1.37% |
Methods | 669 | |
▷ Static methods | 117 | 17.49% |
▷ Public methods | 552 | 82.51% |
▷ Protected methods | 20 | 2.99% |
▷ Private methods | 97 | 14.50% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/vc-icon.png | 5.55KB | 2.99KB | ▼ 46.03% |