Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.45ms] Passed 4 tests
Analyzing server-side resources used by Time Line Diagram
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.36 ▼3.81 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.47 ▼6.25 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.52 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.64 ▼14.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.74 ▲3.29 |
Add New Time Line Item /wp-admin/post-new.php?post_type=time-line | 3.39 | 46.00 |
All Time Line Items /wp-admin/edit.php?post_type=time-line | 3.31 | 35.55 |
Server storage [IO: ▲0.03MB] [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 |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Time Line Diagram
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.34 ▼1.05 | 8.46 ▲6.96 | 39.32 ▼1.25 |
Dashboard /wp-admin | 2,225 ▲44 | 5.58 ▼0.16 | 92.11 ▼9.01 | 39.83 ▼3.84 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.11 ▲0.15 | 38.94 ▲3.28 | 37.31 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 18.42 ▼4.85 | 638.83 ▼22.43 | 66.17 ▲13.91 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.10 ▼0.14 | 108.82 ▼4.91 | 46.20 ▼2.21 |
Add New Time Line Item /wp-admin/post-new.php?post_type=time-line | 2,189 | 7.61 | 175.12 | 64.42 |
All Time Line Items /wp-admin/edit.php?post_type=time-line | 1,100 | 1.97 | 30.25 | 30.23 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-diagram/time_line_wordpress_main.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/timeline-diagram/time_line_wordpress_main.php:10
- > PHP Warning
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 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Demo Screenshots 1.), #2 (Demo Screenshots 2.), #3 (admin panel plugin option.)
- Contributors: The plugin contributors field is missing
timeline-diagram/time_line_wordpress_main.php 92% from 13 tests
This is the main PHP file of "Time Line Diagram" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("timeline-diagram.php" instead of "time_line_wordpress_main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin566 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 63 | 126 | 274 |
CSS | 1 | 2 | 0 | 211 |
PHP | 1 | 10 | 16 | 81 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin