Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.15ms] Passed 4 tests
Analyzing server-side resources used by WP SoaVis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.15 | 34.11 ▲5.20 |
Dashboard /wp-admin | 3.08 ▲0.02 | 50.57 ▲2.20 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 49.24 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 98.02 ▼553.48 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 35.28 ▼2.45 |
SoaVis Chains /wp-admin/edit.php?post_type=soavis_chain | 2.84 | 28.42 |
SoaVis Projects /wp-admin/edit.php?post_type=soavis_project | 2.84 | 23.03 |
SoaVis Shortcodes /wp-admin/admin.php?page=wp-soavis_shortcodes | 2.76 | 25.61 |
SoaVis Systems /wp-admin/edit.php?post_type=soavis_system | 2.84 | 22.58 |
SoaVis Services /wp-admin/edit.php?post_type=soavis_service | 2.84 | 27.10 |
SoaVis Components /wp-admin/edit.php?post_type=soavis_component | 2.84 | 32.24 |
SoaVis Settings /wp-admin/admin.php?page=wp-soavis_settings | 2.76 | 29.10 |
Server storage [IO: ▲0.52MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wp-soavis-rewrite-rules-version |
wp-soavis-options |
Browser metrics Passed 4 tests
A check of browser resources used by WP SoaVis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲217 | 16.18 ▲0.67 | 10.73 ▲2.85 | 49.11 ▼1.14 |
Dashboard /wp-admin | 2,973 ▲42 | 5.85 ▼0.08 | 152.96 ▲4.39 | 113.30 ▼3.07 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 69.63 ▲2.98 | 97.01 ▲6.79 |
Add New Post /wp-admin/post-new.php | 1,591 ▼92 | 18.79 ▲0.66 | 381.57 ▼22.96 | 120.50 ▲3.28 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.00 | 164.84 ▼1.59 | 123.45 ▼1.70 |
SoaVis Chains /wp-admin/edit.php?post_type=soavis_chain | 28 | 0.90 | 0.05 | 11.11 |
SoaVis Projects /wp-admin/edit.php?post_type=soavis_project | 28 | 0.90 | 0.04 | 9.96 |
SoaVis Shortcodes /wp-admin/admin.php?page=wp-soavis_shortcodes | 28 | 0.90 | 0.05 | 12.53 |
SoaVis Systems /wp-admin/edit.php?post_type=soavis_system | 28 | 0.90 | 0.07 | 10.06 |
SoaVis Services /wp-admin/edit.php?post_type=soavis_service | 28 | 0.90 | 0.05 | 11.28 |
SoaVis Components /wp-admin/edit.php?post_type=soavis_component | 28 | 0.90 | 0.09 | 9.77 |
SoaVis Settings /wp-admin/admin.php?page=wp-soavis_settings | 28 | 0.90 | 0.05 | 12.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- wp-soavis-options
- wp-soavis-rewrite-rules-version
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-soavis/includes/class-wp-soavis-graphviz.php
- > /wp-content/plugins/wp-soavis/includes/class-wp-soavis-post-types.php
- > /wp-content/plugins/wp-soavis/public/partials/wp-soavis-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DebugMyPluginPanel' not found in wp-content/plugins/wp-soavis/includes/class.dmppanels.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-soavis/includes/wp-soavis-functions.php:142
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-soavis/admin/partials/wp-soavis-admin-display.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=soavis_chain
- > Network (severe)
wp-admin/edit.php?post_type=soavis_chain - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=soavis_project
- > Network (severe)
wp-admin/edit.php?post_type=soavis_project - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=wp-soavis_shortcodes
- > Network (severe)
wp-admin/admin.php?page=wp-soavis_shortcodes - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=soavis_system
- > Network (severe)
wp-admin/edit.php?post_type=soavis_system - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=soavis_service
- > Network (severe)
wp-admin/edit.php?post_type=soavis_service - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/edit.php?post_type=soavis_component
- > Network (severe)
wp-admin/edit.php?post_type=soavis_component - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/admin.php?page=wp-soavis_settings
- > Network (severe)
wp-admin/admin.php?page=wp-soavis_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-soavis ===
) - Screenshots: These screenshots require images: #1 (The SoaVis Services sub menu page shows an overview of a number of services defined as soavis_service post_type.), #2 (The SoaVis Systems sub menu page shows an overview of a number of systems defined as soavis_system post_type.), #3 (The SoaVis Shortcode sub menu page shows an overview of the SoaVis shortcodes, including the parameters accepted.), #4 (A SoaVis Service can be edited like any other post. A drop down has been added to ease the use of SaoVis shortcodes.), #5 (A service post on the front end shows a SoaVis graph example.), #6 (A system post on the front end showing a different SoaVis graph.)
wp-soavis/wp-soavis.php Passed 13 tests
The main file in "WP SoaVis" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
61 characters long description:
A plugin to provide SoaVis functionality for WordPress sites.
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 plugin2,516 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 595 | 1,548 | 2,067 |
PO File | 1 | 104 | 248 | 254 |
CSS | 2 | 4 | 21 | 189 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 18.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 4 | 3.20% |
▷ Public methods | 97 | 77.60% |
▷ Protected methods | 20 | 16.00% |
▷ Private methods | 8 | 6.40% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 36 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.32MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 56.00KB | 31.80KB | ▼ 43.21% |
screenshot-6.png | 43.79KB | 22.92KB | ▼ 47.67% |
screenshot-2.png | 48.44KB | 27.80KB | ▼ 42.61% |
screenshot-5.png | 41.42KB | 21.97KB | ▼ 46.96% |
screenshot-4.png | 70.39KB | 39.52KB | ▼ 43.86% |