Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Parse error in wp-content/plugins/teportfolio/includes/class.post-type-portfolio.php+409
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.78ms] Passed 4 tests
Server-side resources used by tePortfolio - Responsive Portfolio and Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.45 ▼3.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.98 ▼2.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.89 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.15 ▼3.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.76 ▼0.39 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for tePortfolio - Responsive Portfolio and Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼0.82 | 1.80 ▲0.09 | 41.42 ▼0.84 |
Dashboard /wp-admin | 2,206 ▲15 | 5.86 ▲0.05 | 108.53 ▲1.89 | 38.39 ▼6.72 |
Posts /wp-admin/edit.php | 2,095 ▲2 | 2.06 ▲0.01 | 47.98 ▲11.82 | 46.68 ▲16.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.15 ▼0.16 | 689.59 ▼1.64 | 59.39 ▲2.45 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.18 ▼0.09 | 96.99 ▼12.34 | 43.03 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please 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 plugins_url() in wp-content/plugins/teportfolio/te-portfolio.php:35
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/teportfolio/includes/class.post-type-portfolio.php on line 409
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
teportfolio/te-portfolio.php 92% from 13 tests
This is the main PHP file of "tePortfolio - Responsive Portfolio and Gallery" 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 make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("teportfolio.php" instead of "te-portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,941 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 757 | 966 | 2,987 |
CSS | 5 | 69 | 95 | 1,329 |
PHP | 3 | 58 | 235 | 531 |
HTML | 1 | 34 | 8 | 84 |
SVG | 1 | 0 | 1 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.48MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/litebox-prev.png | 51.08KB | 0.54KB | ▼ 98.94% |
img/social/youtube.png | 2.16KB | 1.85KB | ▼ 14.53% |
img/img.png | 22.18KB | 7.17KB | ▼ 67.69% |
banner-772x250.png | 274.96KB | 100.71KB | ▼ 63.37% |
img/social/linkedin.png | 2.51KB | 2.25KB | ▼ 10.27% |