Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.46ms] Passed 4 tests
Server-side resources used by Nativery Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 36.85 ▼7.15 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.64 ▼2.58 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.44 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 95.53 ▲1.63 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 37.98 ▼0.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
nativery_enabled |
nativery_widgets |
widget_recent-posts |
widget_nativery_widget |
nativery_css |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Nativery Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.38 ▼0.99 | 6.03 ▲4.26 | 41.15 ▲1.31 |
Dashboard /wp-admin | 2,223 ▲34 | 5.86 ▲0.86 | 104.47 ▼18.26 | 75.95 ▲36.21 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.00 ▼0.05 | 37.10 ▲0.79 | 33.26 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 22.21 ▼0.94 | 668.42 ▲19.55 | 38.36 ▼13.59 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.21 ▼0.05 | 101.35 ▼2.21 | 70.33 ▲28.88 |
Uninstaller [IO: ▲0.04MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsThis plugin did not uninstall successfully, leaving 9 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/nativery/Nativery.php+133
Uncaught Error: Using $this when not in object context in wp-content/plugins/nativery/Nativery.php:133
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Nativery::nativery_uninstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - This plugin has failed uninstalling correctly, leaving 16 files (0.04MB) in the plugin directory
- (new file) lang/en_US.po
- (new file) Nativery.php
- (new file) lang/es_ES.mo
- (new file) js/editorShortcode.js
- (new file) images/icon.png
- (new file) images/icon32.png
- (new file) lang/en_US.mo
- (new file) css/natcustom.css
- (new file) js/lwl.png
- (new file) css/nativery.css
- ...
- widget_nativery_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- nativery_css
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/nativery/nativery_settings.php:9
- > PHP Warning
Use of undefined constant NATIVERY_CURRENT_VERSION - assumed 'NATIVERY_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/nativery/nativery_settings.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nativery/Nativery.php:59
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/nativery/Nativery.php on line 57
- > PHP Warning
Use of undefined constant NATIVERY_PUGIN_NAME - assumed 'NATIVERY_PUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/nativery/nativery_settings.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nativery/widget.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
9 plugin tags: advertising, content ads, native ad, nativery, widget...
nativery/Nativery.php 92% from 13 tests
The entry point to "Nativery Plugin" version 0.1.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nativery.php" instead of "Nativery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected799 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 144 | 70 | 464 |
PO File | 3 | 56 | 56 | 160 |
CSS | 1 | 5 | 0 | 150 |
JavaScript | 1 | 1 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 9 | 39.13% |
▷ Public methods | 23 | 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 | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 2.03KB | 0.74KB | ▼ 63.44% |
js/lwl.png | 5.45KB | 0.71KB | ▼ 86.92% |
images/icon32.png | 3.10KB | 0.74KB | ▼ 76.07% |