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.05MB] [CPU: ▼5.65ms] Passed 4 tests
This is a short check of server-side resources used by MartinCV OpenAi Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.56 ▼0.13 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.35 ▼5.43 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.23 ▼5.21 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.48 ▼11.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 39.13 ▲5.23 |
OpenAi Post /wp-admin/options-general.php?page=martincv-openai-post-settings | 3.27 | 34.90 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MartinCV OpenAi Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.00 | 1.92 ▼0.32 | 46.20 ▲5.58 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.09 | 91.78 ▼7.11 | 44.14 ▲0.31 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.02 ▼0.01 | 39.13 ▼0.87 | 37.21 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6,376 ▲4,850 | 25.81 ▲2.61 | 948.10 ▲258.16 | 65.36 ▲9.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▼0.10 | 105.36 ▲0.21 | 45.30 ▼1.07 |
OpenAi Post /wp-admin/options-general.php?page=martincv-openai-post-settings | 938 | 2.03 | 25.46 | 28.55 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/martincv-openai-blog-post/views/admin/template-admin-post-metabox.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/martincv-openai-blog-post/views/admin/template-admin-dashboard.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
martincv-openai-blog-post/martincv-openai-post.php 85% from 13 tests
The main PHP file in "MartinCV OpenAi Post" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("martincv-openai-blog-post.php" instead of "martincv-openai-post.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
There were no executable files found in this plugin752 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 122 | 252 | 532 |
JavaScript | 1 | 30 | 0 | 155 |
Markdown | 1 | 27 | 0 | 45 |
CSS | 1 | 5 | 0 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 34.78% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin