83% wfs-easy-demo-website

Code Review | WFS Easy Website Demo

WordPress plugin WFS Easy Website Demo scored 83% from 54 tests.

About plugin

  • Plugin page: wfs-easy-demo-web...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2013
  • Latest release: Dec 25, 2013
  • Number of updates: 6
  • Update frequency: every 11.5 days
  • Top authors: webfacescript (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.86ms] Passed 4 tests

Server-side resources used by WFS Easy Website Demo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.50 ▲1.27
Dashboard /wp-admin3.34 ▲0.0344.55 ▼3.19
Posts /wp-admin/edit.php3.39 ▲0.0342.67 ▼5.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.77 ▼3.70
Media Library /wp-admin/upload.php3.26 ▲0.0335.45 ▲2.18

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WFS Easy Website Demo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.25 ▼1.441.75 ▼1.2845.75 ▼3.77
Dashboard /wp-admin2,224 ▲364.95 ▼0.9699.19 ▼12.7464.78 ▲16.27
Posts /wp-admin/edit.php2,083 ▼32.02 ▼0.0436.18 ▼0.6729.05 ▼4.71
Add New Post /wp-admin/post-new.php1,529 ▼423.40 ▲0.12676.73 ▼7.4554.57 ▲0.65
Media Library /wp-admin/upload.php1,394 ▲64.20 ▲0.0295.31 ▼21.4180.76 ▲32.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required '../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
    • > PHP Warning
      require_once(ABSPATH/wp-content/plugins/wfs_easy_demo_website/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
    • > PHP Warning
      require_once(../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required '../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-content/plugins/wfs_easy_demo_website/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wfs-easy-demo-website/wfs_easy_demo_website.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wfs-easy-demo-website === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Demo website when displaying), #2 (Wordpress menu config), #3 (Plugin admin panel)
You can look at the official readme.txt

wfs-easy-demo-website/wfs_easy_demo_website.php 92% from 13 tests

"WFS Easy Website Demo" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wfs-easy-demo-website.php" instead of "wfs_easy_demo_website.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected653 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP86240477
JavaScript275108
CSS18368

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png84.36KB35.03KB▼ 58.47%
screenshot-3.png44.54KB29.02KB▼ 34.83%
screenshot-1.png17.65KB8.21KB▼ 53.46%
assets/images/menu_icon.png2.73KB0.08KB▼ 97.00%