Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.79ms] Passed 4 tests
Server-side resources used by Ajax Content Filter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.24 ▲1.35 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.70 ▼4.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.78 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.05 ▼4.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.83 ▲2.43 |
Add New ACF Post /wp-admin/post-new.php?post_type=acf_post | 3.38 | 50.63 |
ACF Posts /wp-admin/edit.php?post_type=acf_post | 3.31 | 47.74 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 123 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Content Filter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲143 | 13.57 ▼0.80 | 7.98 ▲5.93 | 44.06 ▼2.43 |
Dashboard /wp-admin | 2,234 ▲49 | 4.89 ▼0.09 | 101.46 ▼9.36 | 78.82 ▲37.34 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.04 | 36.46 ▼2.27 | 37.38 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,693 ▲179 | 22.54 ▲4.98 | 702.39 ▲31.47 | 52.89 ▲0.27 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.16 ▼0.07 | 104.25 ▲1.57 | 45.65 ▼1.14 |
Add New ACF Post /wp-admin/post-new.php?post_type=acf_post | 2,155 | 7.61 | 176.03 | 129.09 |
ACF Posts /wp-admin/edit.php?post_type=acf_post | 1,096 | 1.93 | 39.76 | 46.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ajax-content-filter/views/lesson-todo.php
- 92× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ajax-content-filter/lib/lib/TransferReversal.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-content-filter/views/certificates.php:1
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ajax-content-filter/lib/lib/ApplicationFeeRefund.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-content-filter/views/shortcode-generator.html.php:2
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ExternalAccount' not found in wp-content/plugins/ajax-content-filter/lib/lib/BitcoinReceiver.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-content-filter/views/lesson-meta-box.php:1
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ajax-content-filter/lib/lib/SingletonApiResource.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-content-filter/views/my_courses.php:1
- > PHP Notice
Undefined variable: todo in wp-content/plugins/ajax-content-filter/views/lesson-todo.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ajax-content-filter/lib/lib/FileUpload.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ajax filter, filerable post content, content filter, display content using ajax, change content
ajax-content-filter/acf.php 92% from 13 tests
The principal PHP file in "Ajax Content Filter" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ajax-content-filter.php" instead of "acf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,278 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 2,036 | 2,475 | 9,264 |
JavaScript | 1 | 0 | 0 | 9 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 17.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 5 | 6.58% |
▷ Concrete classes | 71 | 93.42% |
▷ Final classes | 0 | 0.00% |
Methods | 437 | |
▷ Static methods | 279 | 63.84% |
▷ Public methods | 416 | 95.19% |
▷ Protected methods | 9 | 2.06% |
▷ Private methods | 12 | 2.75% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 30 | |
▷ Global constants | 22 | 73.33% |
▷ Class constants | 8 | 26.67% |
▷ Public constants | 8 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/perceptionlogo.png | 1.30KB | 1.34KB | 0.00% |
js/acf.png | 0.27KB | 0.21KB | ▼ 20.07% |