Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.75ms] Passed 4 tests
An overview of server-side resources used by Newor Media
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 45.00 ▲2.77 |
Dashboard /wp-admin | 3.68 ▲0.38 | 44.89 ▼5.29 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 48.06 ▲4.85 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 84.49 ▼5.96 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 33.13 ▲1.47 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Newor Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.74 ▼0.84 | 1.64 ▼0.37 | 42.76 ▼1.67 |
Dashboard /wp-admin | 2,221 ▲30 | 5.84 ▲0.97 | 102.91 ▼14.54 | 84.29 ▲40.04 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.10 ▲0.09 | 35.56 ▼16.52 | 33.67 ▼13.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 22.96 ▲5.52 | 727.48 ▲68.73 | 51.33 ▼7.59 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.22 ▼0.03 | 97.40 ▼1.76 | 48.84 ▲6.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/Node/FunctionNode.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/Parser/Handler/StringHandler.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/newor-media/admin/partials/newor-media-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'voku\\helper\\AbstractSimpleXmlDom' not found in wp-content/plugins/newor-media/vendor/voku/simple_html_dom/src/voku/helper/SimpleXmlDom.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/newor-media/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/newor-media/admin/templates/ad-unit-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' not found in wp-content/plugins/newor-media/vendor/symfony/css-selector/XPath/Extension/HtmlExtension.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: advertising, newormedia, header bidding
newor-media/newor-media.php 92% from 13 tests
Analyzing the main PHP file in "Newor Media" version 1.0.4
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin8,561 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 1,914 | 5,699 | 7,110 |
Markdown | 8 | 342 | 1 | 754 |
JSON | 6 | 0 | 0 | 376 |
CSS | 1 | 38 | 0 | 180 |
YAML | 2 | 14 | 0 | 88 |
JavaScript | 1 | 8 | 1 | 53 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 7 | 9.21% |
▷ Concrete classes | 69 | 90.79% |
▷ Final classes | 3 | 4.35% |
Methods | 801 | |
▷ Static methods | 42 | 5.24% |
▷ Public methods | 752 | 93.88% |
▷ Protected methods | 30 | 3.75% |
▷ Private methods | 19 | 2.37% |
Functions | 26 | |
▷ Named functions | 12 | 46.15% |
▷ Anonymous functions | 14 | 53.85% |
Constants | 25 | |
▷ Global constants | 4 | 16.00% |
▷ Class constants | 21 | 84.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/nm-icon.png | 2.73KB | 1.86KB | ▼ 31.95% |
images/nm-logo.png | 5.17KB | 3.22KB | ▼ 37.74% |