89% ams-hide-page-and-post-title

Code Review | AMS Hide Page and Post Title

WordPress plugin AMS Hide Page and Post Title scored 89% from 54 tests.

About plugin

  • Plugin page: ams-hide-page-and...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.9
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Jan 23, 2022
  • Number of updates: 13
  • Update frequency: every 147.2 days
  • Top authors: manojsv (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 15,120 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.72ms] Passed 4 tests

This is a short check of server-side resources used by AMS Hide Page and Post Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.03 ▼5.94
Dashboard /wp-admin3.34 ▲0.0342.87 ▼3.37
Posts /wp-admin/edit.php3.39 ▲0.0344.47 ▼0.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.53 ▼12.89
Media Library /wp-admin/upload.php3.26 ▲0.0336.91 ▲6.37

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AMS Hide Page and Post Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼0.663.99 ▲1.7938.27 ▼15.04
Dashboard /wp-admin2,203 ▲125.86 ▲0.01107.92 ▲5.7142.17 ▲1.20
Posts /wp-admin/edit.php2,089 ▲182.04 ▲0.0040.46 ▲4.5736.69 ▲0.52
Add New Post /wp-admin/post-new.php6,449 ▲4,91620.14 ▼3.00931.54 ▲332.4152.17 ▼10.70
Media Library /wp-admin/upload.php1,385 ▼34.16 ▼0.01105.04 ▲7.5046.02 ▲4.60

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.jpg)
Please take inspiration from this readme.txt

ams-hide-page-and-post-title/ams-hide-page-and-post-title.php 92% from 13 tests

The principal PHP file in "AMS Hide Page and Post Title" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin