83% wp-fakeloader

Code Review | WP Fakeloader

WordPress plugin WP Fakeloader scored 83% from 54 tests.

About plugin

  • Plugin page: wp-fakeloader
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2016
  • Latest release: May 16, 2017
  • Number of updates: 12
  • Update frequency: every 32.5 days
  • Top authors: mdshamimshahnewaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 7,573 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
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Fakeloader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.54 ▲4.18
Dashboard /wp-admin3.35 ▲0.0545.22 ▼4.49
Posts /wp-admin/edit.php3.46 ▲0.1145.99 ▲0.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.72 ▼10.67
Media Library /wp-admin/upload.php3.27 ▲0.0534.30 ▼1.86
WP Fakeloader /wp-admin/options-general.php?page=wp-fakeloader-settings3.2634.57

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Fakeloader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲20113.88 ▼0.687.84 ▲6.1645.90 ▲0.91
Dashboard /wp-admin2,232 ▲415.13 ▲0.22100.90 ▼1.6636.01 ▼7.01
Posts /wp-admin/edit.php2,114 ▲252.30 ▲0.3136.90 ▼3.4332.51 ▼3.38
Add New Post /wp-admin/post-new.php1,543 ▲2318.30 ▼4.72621.33 ▼42.4233.75 ▼22.81
Media Library /wp-admin/upload.php1,408 ▲204.45 ▲0.3395.06 ▼22.1041.95 ▼9.45
WP Fakeloader /wp-admin/options-general.php?page=wp-fakeloader-settings1,1002.3941.2547.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-fakeloader/admin/classes/wp-fakeloader-admin.php
    • > /wp-content/plugins/wp-fakeloader/site/classes/wp-fakeloader.php
    • > /wp-content/plugins/wp-fakeloader/wp-fakeloader.php
    • > /wp-content/plugins/wp-fakeloader/templates/shortcode-fakeloader-content.php
    • > /wp-content/plugins/wp-fakeloader/admin/index.php
    • > /wp-content/plugins/wp-fakeloader/site/index.php
    • > /wp-content/plugins/wp-fakeloader/index.php
    • > /wp-content/plugins/wp-fakeloader/templates/admin-wp-fakeloader-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt might help

wp-fakeloader/wp-fakeloader.php 92% from 13 tests

The entry point to "WP Fakeloader" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected632 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS1601317
PHP821469267
Markdown117030
JavaScript311218

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png35.82KB14.94KB▼ 58.29%
screenshot-1.png1.91KB0.35KB▼ 81.89%
screenshot-3.png24.15KB12.66KB▼ 47.57%
screenshot-2.png6.03KB3.96KB▼ 34.29%