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.06MB] [CPU: ▼4.48ms] Passed 4 tests
Server-side resources used by Wikipedia Preview
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.43 ▼3.17 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.43 ▼5.16 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.67 ▼4.47 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.97 ▼5.10 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.69 ▲1.49 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wikipediapreview_init_timestamp |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wikipedia Preview
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 13.29 ▼1.30 | 17.55 ▲15.32 | 43.26 ▼6.88 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.03 | 96.37 ▲5.56 | 42.08 ▼4.74 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.05 | 36.98 ▼6.88 | 36.62 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.57 ▲0.40 | 681.53 ▲32.90 | 52.24 ▼1.53 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.02 | 98.62 ▼4.28 | 45.50 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- wikipediapreview_init_timestamp
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wikipedia-preview/banner.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wikipedia-preview/intro.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wikipedia-preview/wikipediapreview.php:135
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wiki, facts, popup, card, wikipedia
wikipedia-preview/wikipediapreview.php 92% from 13 tests
"Wikipedia Preview" version 1.11.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wikipedia-preview.php" instead of "wikipediapreview.php")
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
Success! There were no dangerous files found in this plugin857 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 492 |
PHP | 3 | 42 | 26 | 313 |
CSS | 3 | 9 | 0 | 48 |
JavaScript | 3 | 0 | 1 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.01MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Step-3-detailed.png | 254.58KB | 108.88KB | ▼ 57.23% |
images/illustration01.png | 97.34KB | 34.05KB | ▼ 65.02% |
images/Step-4-detailed.png | 309.20KB | 113.63KB | ▼ 63.25% |
images/Step-2-detailed.png | 202.22KB | 89.71KB | ▼ 55.63% |
images/wordmark.png | 1.39KB | 0.95KB | ▼ 32.17% |