84% epitome-featured-content

Code Review | Epitome Featured Content

WordPress plugin Epitome Featured Content scored84%from 54 tests.

About plugin

  • Plugin page: epitome-featured-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Dec 3, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: freddessaint2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 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
Install script ran successfully

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

An overview of server-side resources used by Epitome Featured Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.49 ▼3.10
Dashboard /wp-admin3.33 ▲0.0250.76 ▼1.46
Posts /wp-admin/edit.php3.38 ▲0.0251.91 ▲4.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.79 ▲4.75
Media Library /wp-admin/upload.php3.25 ▲0.0236.04 ▲0.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Epitome Featured Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.421.85 ▲0.0245.67 ▼0.14
Dashboard /wp-admin2,206 ▲184.85 ▼0.02113.81 ▲2.2443.67 ▲3.56
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0641.22 ▲4.1936.47 ▼0.48
Add New Post /wp-admin/post-new.php1,534 ▼223.42 ▲0.18656.19 ▼3.7853.46 ▲1.17
Media Library /wp-admin/upload.php1,382 ▼94.22 ▲0.0397.87 ▼3.7244.24 ▼0.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/epitome-featured-content/epitome-featured-content.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: slider, oembed, video, maps, interactive...

epitome-featured-content/epitome-featured-content.php 92% from 13 tests

The main PHP file in "Epitome Featured Content" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected131 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP228124108
Markdown215023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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