84% ss-find-post-with-password

Code Review | SS Find Post with Password

WordPress plugin SS Find Post with Password scored84%from 54 tests.

About plugin

  • Plugin page: ss-find-post-with...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2014
  • Latest release: Jul 9, 2014
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: spotlightstudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.22ms] Passed 4 tests

A check of server-side resources used by SS Find Post with Password
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.76 ▼1.34
Dashboard /wp-admin3.31 ▼0.0343.66 ▼17.36
Posts /wp-admin/edit.php3.36 ▲0.0147.68 ▲4.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.36 ▼21.04
Media Library /wp-admin/upload.php3.23 ▲0.0134.82 ▼1.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

SS Find Post with Password: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.161.79 ▲0.0443.87 ▼0.21
Dashboard /wp-admin2,206 ▲145.79 ▲0.87115.53 ▼9.1840.03 ▼11.40
Posts /wp-admin/edit.php2,089 ▲212.04 ▲0.0138.89 ▲3.9635.50 ▲2.78
Add New Post /wp-admin/post-new.php1,513 ▼622.74 ▼0.17666.88 ▲57.3859.27 ▲6.68
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0194.51 ▼4.1843.97 ▲1.89

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/ss-find-post-with-password/ss-findPostWithPassword.php on line 22
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/ss-find-post-with-password/ss-findPostWithPassword.php on line 22
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-find-post-with-password/ss-findPostWithPassword.php on line 22

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 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
8 plugin tags: spotlight, wordpress, gallery, photography, studios...

ss-find-post-with-password/ss-findPostWithPassword.php 92% from 13 tests

Analyzing the main PHP file in "SS Find Post with Password" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ss-find-post-with-password.php" instead of "ss-findPostWithPassword.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191770

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected