90% show-more-toggle-button

Code Review | Show More Toggle Button

WordPress plugin Show More Toggle Button scored90%from 54 tests.

About plugin

  • Plugin page: show-more-toggle-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-5.1.1
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: May 4, 2019
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: yuforest0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /722 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.41ms] Passed 4 tests

Server-side resources used by Show More Toggle Button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.25 ▼3.52
Dashboard /wp-admin3.32 ▲0.0245.50 ▼5.09
Posts /wp-admin/edit.php3.37 ▲0.0244.50 ▼5.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.61 ▼15.87
Media Library /wp-admin/upload.php3.24 ▲0.0237.28 ▲1.61
Show more toggle button /wp-admin/options-general.php?page=show_more_toggle_button3.2126.32

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Show More Toggle Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15214.00 ▼0.254.87 ▲2.8836.93 ▼6.24
Dashboard /wp-admin2,207 ▲524.88 ▼0.80114.71 ▲4.4442.86 ▲0.07
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0634.98 ▼2.1330.85 ▼2.61
Add New Post /wp-admin/post-new.php1,522 ▲823.05 ▲5.55643.86 ▼3.7355.56 ▼2.93
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.0499.35 ▲3.3443.47 ▲1.02
Show more toggle button /wp-admin/options-general.php?page=show_more_toggle_button7991.9927.2431.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: You can look at the official readme.txt

show-more-toggle-button/show-more-toggle-button.php Passed 13 tests

The primary PHP file in "Show More Toggle Button" version 1.0.4 is used by WordPress to initiate all plugin functionality
61 characters long description:
This is a plugin to make toggle button for show more section.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin109 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP184675
CSS16025
JavaScript1009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin