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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.62ms] Passed 4 tests
Server-side resources used by Bestseller Lists from the New York Times
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.03 ▼4.53 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.29 ▼18.84 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.06 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.04 ▼13.93 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.83 ▲8.14 |
NYT Bestseller Lists /wp-admin/options-general.php?page=nyt-bestseller-lists | 3.26 | 32.66 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
nyt_bestseller_listings_apiKey |
widget_recent-posts |
bestseller-lists-nyt-plugin-version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Bestseller Lists from the New York Times
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.10 | 1.68 ▼0.35 | 39.25 ▼3.05 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▼0.09 | 83.49 ▼6.68 | 40.50 ▼2.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 36.30 ▲0.74 | 31.89 ▼6.54 |
Add New Post /wp-admin/post-new.php | 6,365 ▲4,839 | 27.71 ▲4.25 | 934.21 ▲260.92 | 53.39 ▼2.38 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.19 ▼0.04 | 99.93 ▼3.51 | 46.02 ▲2.20 |
NYT Bestseller Lists /wp-admin/options-general.php?page=nyt-bestseller-lists | 812 | 2.15 | 24.48 | 30.33 |
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
- can_compress_scripts
- db_upgraded
- bestseller-lists-nyt-plugin-version
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bestseller-lists-from-new-york-times/functions.php
- > /wp-content/plugins/bestseller-lists-from-new-york-times/index.php
- > /wp-content/plugins/bestseller-lists-from-new-york-times/plugin-updates.php
- > /wp-content/plugins/bestseller-lists-from-new-york-times/class-nytbestsellerlistings.php
- > /wp-content/plugins/bestseller-lists-from-new-york-times/admin-page.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bestseller-lists-from-new-york-times/build/lists/render.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: books, library, reading lists, bestsellers, libraries
bestseller-lists-from-new-york-times/index.php 85% from 13 tests
The main file in "Bestseller Lists from the New York Times" v. 2.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.4")
- Main file name: The principal plugin file should be the same as the plugin slug ("bestseller-lists-from-new-york-times.php" instead of "index.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
No dangerous file extensions were detected374 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 90 | 59 | 336 |
JSON | 2 | 0 | 0 | 35 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 152.11KB | 47.55KB | ▼ 68.74% |