94% wf-sections

Code Review | Sections by Wesfed

WordPress plugin Sections by Wesfed scored 94% from 53 tests.

About plugin

  • Plugin page: wf-sections
  • Plugin version: 1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 5.8.1
  • First release: Sep 25, 2013
  • Latest release: Sep 26, 2013
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: therealwesfoster (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 967 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼1,008.72ms] Passed 4 tests

Analyzing server-side resources used by Sections by Wesfed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.94 ▼9.49
Dashboard /wp-admin3.07 ▼0.0645.53 ▼2,912.10
Posts /wp-admin/edit.php3.13 ▲0.0136.10 ▼12.38
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.06 ▼1,100.91
Media Library /wp-admin/upload.php3.02 ▲0.0230.97 ▲0.61
All Sections /wp-admin/edit.php?post_type=wf_sections3.0635.90
Add New /wp-admin/post-new.php?post_type=wf_sections3.2349.76

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Sections by Wesfed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲23715.88 ▲2.117.58 ▼1.4649.98 ▲1.75
Dashboard /wp-admin2,965 ▲755.93 ▼0.03142.40 ▼3.09110.24 ▲2.70
Posts /wp-admin/edit.php2,741 ▲352.68 ▲0.0064.57 ▼3.0382.73 ▼9.18
Add New Post /wp-admin/post-new.php1,679 ▲2318.31 ▲0.46363.22 ▼17.25111.97 ▼19.90
Media Library /wp-admin/upload.php1,751 ▼244.99 ▲0.00155.57 ▲8.24109.50 ▼0.65
All Sections /wp-admin/edit.php?post_type=wf_sections1,3982.6361.1069.00
Add New /wp-admin/post-new.php?post_type=wf_sections2,8058.82205.92128.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix 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 plugin_dir_path() in wp-content/plugins/wf-sections/wf-sections.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wf-sections/inc/backend.php:22
    • > PHP Notice
      Undefined index: s in wp-content/plugins/wf-sections/image.php on line 23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: ads, sections, adsense, wesfed, text placement...

wf-sections/wf-sections.php 92% from 13 tests

This is the main PHP file of "Sections by Wesfed" version 1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1")

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
Good job! No executable or dangerous file extensions detected146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45695146

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin