Benchmarks
Plugin footprint Passed 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.18MB] [CPU: ▼139.20ms] Passed 4 tests
Analyzing server-side resources used by Pressenter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.17 | 42.11 ▲4.75 |
Dashboard /wp-admin | 3.22 ▲0.17 | 50.81 ▲5.60 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 46.89 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.66 ▲0.23 | 94.90 ▼565.81 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 35.20 ▲3.67 |
Add new /wp-admin/admin.php?page=new-pressentation | 3.14 | 31.49 |
Presentations /wp-admin/admin.php?page=pressentation | 3.21 | 31.93 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pressenter |
Browser metrics Passed 4 tests
Pressenter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,890 ▲294 | 17.04 ▲1.46 | 18.88 ▲6.98 | 49.79 ▲4.45 |
Dashboard /wp-admin | 3,002 ▲68 | 5.87 ▼0.05 | 142.32 ▼12.83 | 100.77 ▼3.62 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.73 ▲0.03 | 66.52 ▼1.70 | 86.32 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,523 ▼2,052 | 18.84 ▲4.01 | 400.44 ▼71.20 | 110.96 ▲8.62 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.06 ▲0.00 | 165.27 ▲14.24 | 115.34 ▲2.07 |
Add new /wp-admin/admin.php?page=new-pressentation | 1,126 | 2.35 | 78.08 | 78.20 |
Presentations /wp-admin/admin.php?page=pressentation | 1,325 | 2.36 | 60.84 | 71.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | 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
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Pressenter\\get_file_data() in wp-content/plugins/pressenter/includes/Main.class.php:27
- > PHP Fatal error
Uncaught Error: Class 'Pressenter\\TableView' not found in wp-content/plugins/pressenter/includes/PresentationsTable.class.php:4
- > PHP Fatal error
Trait 'Pressenter\\Presentation' not found in wp-content/plugins/pressenter/includes/Main.class.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/pressenter/includes/TableView.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'Pressenter\\TableView' not found in wp-content/plugins/pressenter/includes/SlidesTable.class.php:4
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: presentation, learning, slide, meeting
pressenter/plugin.php 92% from 13 tests
The main PHP file in "Pressenter" ver. 1.0.1 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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pressenter.php" instead of "plugin.php")
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 plugin4,477 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 75 | 31 | 2,976 |
PHP | 17 | 181 | 29 | 1,039 |
CSS | 2 | 44 | 22 | 339 |
PO File | 1 | 50 | 67 | 123 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.86 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 1 | 1.64% |
▷ Public methods | 45 | 73.77% |
▷ Protected methods | 5 | 8.20% |
▷ Private methods | 11 | 18.03% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin