Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by QuizPedia
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.97 ▼4.13 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.74 ▼4.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.07 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.22 ▼9.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.40 ▼1.28 |
QuizPedia Settings /wp-admin/options-general.php?page=plugin | 3.19 | 28.92 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for QuizPedia
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.12 ▼1.26 | 1.80 ▼0.33 | 44.88 ▲2.92 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▲0.77 | 96.77 ▼14.25 | 40.84 ▼4.45 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.04 | 39.46 ▲3.00 | 34.93 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,551 ▲30 | 18.32 ▼4.99 | 609.91 ▼71.08 | 59.17 ▲7.75 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.19 ▲0.01 | 93.89 ▼11.47 | 42.62 ▼3.48 |
QuizPedia Settings /wp-admin/options-general.php?page=plugin | 816 | 2.18 | 25.46 | 34.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=plugin
- > Notice in wp-content/plugins/quizpedia/quizpedia.php+82
Trying to access array offset on value of type bool
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quizpedia/quizpedia.php:54
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=plugin
- > Network (severe)
var/www/wordpress/wp-content/plugins/quizpedia/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Find the id of the quiz you want to embed and put the shortcode '[qp id="QUIZID" w="WIDTH" h="HEIGHT"]' in your post), #2 (The resulting embed on the page)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== quizpedia ===
)
quizpedia/quizpedia.php Passed 13 tests
The primary PHP file in "QuizPedia" version 1.0.2 is used by WordPress to initiate all plugin functionality
35 characters long description:
Embed a QuizPedia quiz on your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin55 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 32 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 153.69KB | 40.51KB | ▼ 73.64% |
screenshot-1.png | 57.47KB | 17.79KB | ▼ 69.04% |
logo.png | 5.42KB | 2.69KB | ▼ 50.32% |