79% fifthestate

Code Review | FifthEstate

WordPress plugin FifthEstate scored79%from 54 tests.

About plugin

  • Plugin page: fifthestate
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Dec 28, 2016
  • Number of updates: 43
  • Update frequency: every 4.0 days
  • Top authors: fifthestate (55.81%)anchitdesai (46.51%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by FifthEstate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.02 ▼2.44
Dashboard /wp-admin3.33 ▲0.0249.39 ▼6.98
Posts /wp-admin/edit.php3.38 ▲0.0252.26 ▲1.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.40 ▼4.41
Media Library /wp-admin/upload.php3.25 ▲0.0239.91 ▼3.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
fifthestate
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

FifthEstate: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.20 ▼0.421.66 ▼0.8039.10 ▼4.86
Dashboard /wp-admin2,201 ▲215.57 ▼0.1191.49 ▼7.8040.24 ▼2.85
Posts /wp-admin/edit.php2,106 ▲62.00 ▲0.0538.05 ▼0.8035.66 ▼0.80
Add New Post /wp-admin/post-new.php1,533 ▲722.99 ▼0.67669.23 ▼10.7654.60 ▼1.28
Media Library /wp-admin/upload.php1,406 ▲124.18 ▼0.0095.45 ▼5.9044.65 ▼1.53
FifthEstate /wp-admin/fifthestate.php260.420.0914.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • fifthestate

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FifthEstate\\add_action() in wp-content/plugins/fifthestate/post-handler.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FifthEstate\\add_action() in wp-content/plugins/fifthestate/settings.php:190
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FifthEstate\\add_action() in wp-content/plugins/fifthestate/post-handler.php:119

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/fifthestate.php
    • > Network (severe)
    wp-admin/fifthestate.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wordpressorg, fifthestate, fifth, wordpress, estate

fifthestate/fifthestate.php Passed 13 tests

The entry point to "FifthEstate" version 1.1.1 is a PHP file that has certain tags in its header comment area
47 characters long description:
Connect your WordPress.org site to FifthEstate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin592 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43444329
JavaScript2278263

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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
Namespaces1
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%
Functions14
▷ Named functions1285.71%
▷ Anonymous functions214.29%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin