Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲2.63ms] Passed 4 tests
This is a short check of server-side resources used by WP Academic Publications
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 51.90 ▲11.02 |
Dashboard /wp-admin | 3.45 ▲0.14 | 56.18 ▲4.24 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 64.32 ▲12.47 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 92.04 ▼13.27 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.10 ▲8.53 |
Publication Categories /wp-admin/edit-tags.php?taxonomy=publication-category&post_type=publication | 3.37 | 46.63 |
All Publications /wp-admin/edit.php?post_type=publication | 3.40 | 47.22 |
Add New /wp-admin/post-new.php?post_type=publication | 3.43 | 54.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Academic Publications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲203 | 14.61 ▲0.30 | 1.99 ▲0.36 | 44.67 ▲2.85 |
Dashboard /wp-admin | 2,367 ▲190 | 6.23 ▲0.59 | 113.07 ▲22.65 | 37.49 ▼4.80 |
Posts /wp-admin/edit.php | 2,297 ▲194 | 3.43 ▲1.46 | 55.25 ▲18.08 | 33.43 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 22.99 ▲5.39 | 646.02 ▼54.70 | 35.67 ▼22.35 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.16 ▼0.13 | 86.96 ▼16.67 | 44.48 ▼2.74 |
Publication Categories /wp-admin/edit-tags.php?taxonomy=publication-category&post_type=publication | 1,502 | 3.19 | 46.96 | 32.84 |
All Publications /wp-admin/edit.php?post_type=publication | 1,275 | 3.38 | 45.07 | 29.12 |
Add New /wp-admin/post-new.php?post_type=publication | 1,994 | 3.65 | 63.43 | 36.26 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-academic-publications/wpap-publication.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-academic-publications/main.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
wp-academic-publications/main.php 92% from 13 tests
The main PHP file in "WP Academic Publications" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-academic-publications.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin312 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 107 | 63 | 297 |
JavaScript | 1 | 6 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 22 | |
▷ Named functions | 22 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin