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
- The plugin cannot be installed
- > Parse error in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/spjb.php+690
syntax error, unexpected end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.27ms] Passed 4 tests
Analyzing server-side resources used by Simple but Powerful HTML and PDF Job Board
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.59 ▼3.62 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.63 ▼10.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.76 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 75.60 ▼24.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.17 ▼1.62 |
Server storage [IO: ▲2.88MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple but Powerful HTML and PDF Job Board
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▼0.16 | 1.67 ▼0.34 | 44.59 ▼3.83 |
Dashboard /wp-admin | 2,206 ▲15 | 5.76 ▲0.87 | 118.72 ▲13.42 | 41.60 ▼2.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 39.61 ▼2.88 | 34.81 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,514 ▼29 | 23.39 ▲4.95 | 673.95 ▲71.07 | 55.29 ▲7.02 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.30 ▲0.08 | 95.33 ▼5.17 | 43.39 ▲0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/tcpdf/tools/tcpdf_addfont.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/spjb.php on line 690
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/fpdi/fpdi_bridge.php:32
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/tcpdf/tcpdf.php on line 17778
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/tcpdf/tcpdf.php on line 17778
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/fpdi/fpdi_bridge.php:32
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/fpdi/fpdi_bridge.php:32
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/simple-but-powerful-html-and-pdf-job-board/includes/tcpdf/tcpdf.php on line 17778
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: advertisment, jobs, pdf, job board, html
simple-but-powerful-html-and-pdf-job-board/spjb.php 85% from 13 tests
The entry point to "Simple but Powerful HTML and PDF Job Board" version 0.9 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-but-powerful-html-and-pdf-job-board.php" instead of "spjb.php")
- Description: The description should be shorter than 140 characters (currently 183 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin48,475 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 2,057 | 12,646 | 48,355 |
HTML | 1 | 9 | 0 | 47 |
JSON | 1 | 0 | 0 | 40 |
CSS | 1 | 9 | 0 | 33 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,349)
- Method cyclomatic complexity should be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 271.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 9.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 773 | |
▷ Static methods | 107 | 13.84% |
▷ Public methods | 472 | 61.06% |
▷ Protected methods | 301 | 38.94% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 106 | 88.33% |
▷ Class constants | 14 | 11.67% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/yes.png | 0.36KB | 0.49KB | 0.00% |
includes/img/info2.png | 0.38KB | 0.34KB | ▼ 10.39% |
includes/img/no.png | 0.33KB | 0.40KB | 0.00% |
includes/img/info.png | 0.39KB | 0.34KB | ▼ 11.56% |