89% placeholder-fallback

Code Review | Placeholder Text

WordPress plugin Placeholder Text scored89%from 54 tests.

About plugin

  • Plugin page: placeholder-fallback
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Dec 9, 2016
  • Number of updates: 12
  • Update frequency: every 85.8 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Placeholder Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.39 ▼2.40
Dashboard /wp-admin3.31 ▲0.0145.18 ▼5.58
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼5.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.04 ▼9.56
Media Library /wp-admin/upload.php3.23 ▲0.0032.90 ▼0.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Placeholder Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.22 ▼1.161.84 ▲0.1439.57 ▼3.58
Dashboard /wp-admin2,206 ▲155.07 ▼0.83111.91 ▲10.3042.82 ▼0.06
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.95 ▲2.1736.14 ▲5.02
Add New Post /wp-admin/post-new.php1,519 ▼123.06 ▼0.10612.90 ▼66.2166.31 ▲11.96
Media Library /wp-admin/upload.php1,391 ▼04.26 ▲0.09101.15 ▼0.9643.26 ▲0.15

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

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 require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === placeholder-fallback === )
You can take inspiration from this readme.txt

placeholder-fallback/placeholders.php 92% from 13 tests

The main file in "Placeholder Text" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("placeholder-fallback.php" instead of "placeholders.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 plugin10 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16129
JavaScript10241

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin