Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.34ms] Passed 4 tests
An overview of server-side resources used by Hide/Show Post/Page Content
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 46.25 ▲7.08 |
Dashboard /wp-admin | 3.68 ▲0.34 | 51.62 ▼7.57 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 53.54 ▲4.55 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 87.04 ▼19.04 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 36.92 ▲0.70 |
Hide/Show Content /wp-admin/tools.php?page=sos-hsc-0 | 3.57 | 35.14 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Hide/Show Post/Page Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.34 | 1.76 ▲0.09 | 43.57 ▲3.90 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▲0.05 | 91.52 ▲2.82 | 41.90 ▼1.55 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 39.60 ▲3.38 | 36.94 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.78 ▲0.76 | 675.79 ▲33.33 | 68.20 ▲9.34 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.06 | 94.53 ▼0.76 | 40.51 ▼0.19 |
Hide/Show Content /wp-admin/tools.php?page=sos-hsc-0 | 851 | 1.98 | 21.09 | 32.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 45× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/data/formfieldtype.php
- > /wp-content/plugins/hideshow-postpage-content/translations.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/data/formbutton.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/data/encryption.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/script.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/be/navtab.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/data/formtag.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/htmltag.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/data/field.php
- > /wp-content/plugins/hideshow-postpage-content/sos/wp/email.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'SOSIDEE_HSC\\SosPlugin' not found in wp-content/plugins/hideshow-postpage-content/admin/info.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: show content, hide image, show text, show image, show post content...
hideshow-postpage-content/hideshow-postpage-content.php Passed 13 tests
"Hide/Show Post/Page Content" version 1.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
128 characters long description:
Hide or show a selected content of public posts/pages depending on whether the user is logged or not. Compatible with Elementor.
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 plugin5,051 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 824 | 745 | 4,831 |
PO File | 1 | 45 | 93 | 168 |
CSS | 1 | 4 | 4 | 27 |
JavaScript | 2 | 0 | 0 | 24 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 337 | |
▷ Static methods | 47 | 13.95% |
▷ Public methods | 245 | 72.70% |
▷ Protected methods | 50 | 14.84% |
▷ Private methods | 42 | 12.46% |
Functions | 39 | |
▷ Named functions | 17 | 43.59% |
▷ Anonymous functions | 22 | 56.41% |
Constants | 44 | |
▷ Global constants | 1 | 2.27% |
▷ Class constants | 43 | 97.73% |
▷ Public constants | 43 | 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
PNG images were not found in this plugin