Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼0.60ms] Passed 4 tests
An overview of server-side resources used by Permalink History
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.31 ▲3.92 |
Dashboard /wp-admin | 3.53 ▲0.22 | 52.35 ▲6.91 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.20 ▲2.32 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.51 ▼11.56 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.85 ▲2.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_permalink_history |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Permalink History
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.17 ▼1.23 | 1.95 ▲0.09 | 41.58 ▲0.27 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲0.00 | 107.26 ▲2.43 | 36.92 ▼7.35 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 40.28 ▲0.52 | 35.46 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6,234 ▲4,706 | 21.65 ▲3.23 | 839.20 ▲220.01 | 59.37 ▲4.45 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▲0.00 | 95.18 ▼2.23 | 44.11 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The uninstall procedure failed, leaving 1 table in the database
- wp_permalink_history
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\PermalinkHistory\\plugin_dir_path() in wp-content/plugins/permalink-history/Plugin.php:33
- > PHP Fatal error
Uncaught Error: Class 'ph_destination' not found in wp-content/plugins/permalink-history/classes/MigratePermalinkHistoryDestination.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: protocol, backup, permalink, seo, history
permalink-history/Plugin.php 85% from 13 tests
Analyzing the main PHP file in "Permalink History" version 1.0.5
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("permalink-history.php" instead of "Plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin914 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 218 | 564 | 904 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 7 | 8.14% |
▷ Public methods | 83 | 96.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.49% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin