84% facedown

Code Review | FaceDown

WordPress plugin FaceDown scored84%from 54 tests.

About plugin

  • Plugin page: facedown
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Apr 23, 2015
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: gwannon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by FaceDown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.95 ▼5.48
Dashboard /wp-admin3.31 ▼0.0345.11 ▼17.08
Posts /wp-admin/edit.php3.36 ▲0.0146.57 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.24 ▼0.16
Media Library /wp-admin/upload.php3.23 ▲0.0134.40 ▲0.92
FaceDown /wp-admin/options-general.php?page=facedown3.2030.42

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for FaceDown
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3813.63 ▼0.832.00 ▲0.0641.30 ▼6.52
Dashboard /wp-admin2,210 ▲254.83 ▼0.04112.59 ▲11.6442.44 ▼0.16
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0140.06 ▲2.4335.20 ▲0.88
Add New Post /wp-admin/post-new.php1,546 ▲3218.09 ▲0.54606.38 ▼25.3448.85 ▼16.33
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0298.34 ▼0.4641.73 ▼1.62
FaceDown /wp-admin/options-general.php?page=facedown8202.0624.0427.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facedown/facedown.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: 90, face-down, 270, facedown, 180...

facedown/facedown.php Passed 13 tests

"FaceDown" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
35 characters long description:
This plugin put facedown your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161760
PO File15526

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions5
▷ Named functions5100.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