Benchmarks
Plugin footprint 83% from 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▼7.42ms] Passed 4 tests
Server-side resources used by Newer Tag Cloud
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 39.14 ▼3.91 |
Dashboard /wp-admin | 3.52 ▲0.17 | 53.67 ▼12.12 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 53.81 ▲3.89 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 97.62 ▼14.43 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.04 ▲0.79 |
Instance Options /wp-admin/admin.php?page=newer-tag-cloud/instances | 3.43 | 35.19 |
Newer Tag Cloud /wp-admin/admin.php?page=newer-tag-cloud | 3.42 | 36.03 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_newer-tag-cloud |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Newer Tag Cloud
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 14.26 ▲0.34 | 1.57 ▼0.50 | 38.62 ▼2.67 |
Dashboard /wp-admin | 2,226 ▲46 | 5.65 ▲0.04 | 93.90 ▲4.29 | 39.69 ▼1.12 |
Posts /wp-admin/edit.php | 2,131 ▲25 | 2.02 ▲0.01 | 39.01 ▼3.32 | 35.28 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,561 ▲32 | 18.13 ▼5.10 | 625.47 ▼50.89 | 74.28 ▲21.28 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.14 ▼0.06 | 96.46 ▼20.51 | 44.33 ▼3.93 |
Instance Options /wp-admin/admin.php?page=newer-tag-cloud/instances | 1,083 | 2.14 | 26.91 | 38.82 |
Newer Tag Cloud /wp-admin/admin.php?page=newer-tag-cloud | 984 | 2.01 | 23.76 | 31.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_newer-tag-cloud
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/newer-tag-cloud/front/partials/newer-tag-cloud-public-display.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/newer-tag-cloud/tests/bootstrap.php on line 31
- > PHP Notice
Undefined variable: cloud in wp-content/plugins/newer-tag-cloud/front/partials/newer-tag-cloud-public-display.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/newer-tag-cloud/admin/partials/newer-tag-cloud-admin-display.php:20
- > PHP Notice
Undefined variable: pluginName in wp-content/plugins/newer-tag-cloud/admin/partials/newer-tag-cloud-instances-display.php on line 19
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/newer-tag-cloud/tests/bootstrap.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/newer-tag-cloud/tests/test-basic-tag.php:16
- > PHP Fatal error
Uncaught Error: Call to a member function create_selectfield() on null in wp-content/plugins/newer-tag-cloud/admin/partials/newer-tag-cloud-instances-display.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/newer-tag-cloud/tests/test-info.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/newer-tag-cloud/lib/class-newer-tag-cloud-widget.php:26
- > PHP Notice
Undefined variable: options in wp-content/plugins/newer-tag-cloud/admin/partials/newer-tag-cloud-instances-display.php on line 21
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
3 plugin tags: tag, widget, cloud
newer-tag-cloud/newer-tag-cloud.php Passed 13 tests
The entry point to "Newer Tag Cloud" version 1.1.2 is a PHP file that has certain tags in its header comment area
113 characters long description:
The plugin provides an widget which shows a tag cloud with the tags used by the new WordPress own tagging feature
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
Good job! No executable or dangerous file extensions detected1,200 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 206 | 769 | 1,009 |
Bourne Shell | 1 | 21 | 7 | 99 |
CSS | 2 | 12 | 8 | 54 |
XML | 2 | 2 | 0 | 22 |
JavaScript | 2 | 5 | 54 | 11 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 48 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 15.79% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin