Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by Post Author IP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.49 ▼0.36 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.27 ▼13.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.30 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.54 ▼6.56 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.43 ▲1.54 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Post Author IP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.44 ▲0.08 | 1.71 ▼0.09 | 44.00 ▼1.79 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.09 | 96.06 ▲9.66 | 42.33 ▲0.71 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▼0.01 | 39.63 ▼1.72 | 36.00 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.59 ▲0.40 | 682.74 ▲25.88 | 68.43 ▲16.46 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▲0.04 | 95.33 ▼2.01 | 41.36 ▼0.27 |
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 were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 no errors were found, this is by no means 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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-author-ip/tests/phpunit/bootstrap.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-author-ip/tests/phpunit/bootstrap.php on line 29
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/post-author-ip/tests/phpunit/bootstrap.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: audit, coffee2code, ip, auditing, post...
post-author-ip/post-author-ip.php Passed 13 tests
The entry point to "Post Author IP" version 1.4 is a PHP file that has certain tags in its header comment area
82 characters long description:
Records the IP address of the original post author when a post first gets created.
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
Everything looks great! No dangerous files found in this plugin37,248 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 36,257 |
PHP | 5 | 330 | 414 | 795 |
Markdown | 3 | 33 | 0 | 112 |
JavaScript | 2 | 3 | 4 | 31 |
Bourne Shell | 1 | 6 | 2 | 21 |
CSS | 1 | 0 | 0 | 18 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 24 | 25.81% |
▷ Public methods | 91 | 97.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.15% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected