Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wpmathpub/wpmathpub.php+66
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.87MB] [CPU: ▼54.14ms] Passed 4 tests
This is a short check of server-side resources used by WP Math Publisher - wpmathpub
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.59 ▼44.23 |
Dashboard /wp-admin | 2.13 ▼1.17 | 6.60 ▼42.12 |
Posts /wp-admin/edit.php | 2.13 ▼1.22 | 6.07 ▼41.54 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.75 | 5.66 ▼88.68 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.12 ▼28.89 |
wpmathpub /wp-admin/tools.php?page=wpmathpubmanage | 2.13 | 6.52 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Math Publisher - wpmathpub
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.18 ▼1.20 | 1.54 ▼0.72 | 38.89 ▼14.97 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.01 | 110.84 ▲5.57 | 42.53 ▲1.76 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.06 ▲0.03 | 40.42 ▼2.17 | 35.07 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 23.08 ▼0.43 | 591.20 ▼42.60 | 55.30 ▲9.22 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▼0.06 | 96.91 ▼2.32 | 39.88 ▼3.75 |
wpmathpub /wp-admin/tools.php?page=wpmathpubmanage | 866 | 2.01 | 23.49 | 28.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wpmathpub/wpmathpub.php+66
define(): Declaration of case-insensitive constants is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=wpmathpubmanage
- > Deprecated in wp-content/plugins/wpmathpub/wpmathpub.php+66
define(): Declaration of case-insensitive constants is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=wpmathpubmanage
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wpmathpub/phpmathpublisher/fonts/index.php
- > /wp-content/plugins/wpmathpub/phpmathpublisher/doc/index.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wpmathpub/wpmathpub.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (WordPress post with [pmath] tags mixed with plain text), #2 (WordPress comments with [pmath] tags mixed with plain text (as shown from WP v:2.5.1 admin tool's detail view)), #3 (WordPress plugin management page after upload and activation), #4 (Sample directory structure of this plugin within a WordPress installation), #5 (status display from the author's blog > Manage > wpmathpub menu)
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wpmathpub/wpmathpub.php 92% from 13 tests
The main PHP file in "WP Math Publisher - wpmathpub" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 383 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,333 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 118 | 195 | 1,654 |
HTML | 4 | 45 | 0 | 574 |
CSS | 1 | 8 | 2 | 105 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
128 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpmathpublisher/doc/sample.png | 1.82KB | 1.63KB | ▼ 10.15% |
phpmathpublisher/doc/img/e6dd33685d13dc7a5f7291114512fafc.png | 0.16KB | 0.15KB | ▼ 0.63% |
phpmathpublisher/doc/img/6b5c2ab858733a005ad3f8c858d2c0be.png | 0.21KB | 0.21KB | 0.47% |
phpmathpublisher/doc/img/bd58d2042db2d48bbc8e1dfa882d2e7d.png | 0.17KB | 0.17KB | 0.00% |
phpmathpublisher/doc/img/math_994_105138a1af0cc9a8aede73b2549168e4.png | 0.29KB | 0.27KB | ▼ 7.64% |