84% wp-front-end-developer

Code Review | Frontend Developer

WordPress plugin Frontend Developer scored84%from 54 tests.

About plugin

  • Plugin page: wp-front-end-deve...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 13, 2014
  • Latest release: May 13, 2014
  • Number of updates: 9
  • Update frequency: every 7.6 days
  • Top authors: hollywood24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼4.57ms] Passed 4 tests

A check of server-side resources used by Frontend Developer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.71 ▼0.12
Dashboard /wp-admin3.31 ▼0.0349.94 ▼11.21
Posts /wp-admin/edit.php3.36 ▲0.0151.78 ▲1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.02 ▼8.35
Media Library /wp-admin/upload.php3.24 ▲0.0139.31 ▲5.86

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

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

Browser metrics Passed 4 tests

Frontend Developer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲22313.64 ▼0.796.74 ▲4.9141.48 ▼1.11
Dashboard /wp-admin2,221 ▲245.88 ▲0.02102.89 ▼5.0239.84 ▼4.84
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0235.53 ▼3.7932.24 ▼3.95
Add New Post /wp-admin/post-new.php1,536 ▲1023.16 ▲5.40648.97 ▲15.6748.94 ▼1.53
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0293.85 ▼11.9944.86 ▼0.43

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-front-end-developer/functions.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
4 plugin tags: themer, front end, wordpress, developer

wp-front-end-developer/functions.php 92% from 13 tests

The main PHP script in "Frontend Developer" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-front-end-developer.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin96 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1171761
PHP164223
JavaScript16512

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/mobile.png1.07KB0.21KB▼ 79.87%
img/tablet.png1.03KB0.18KB▼ 82.70%
img/screen.png0.97KB0.12KB▼ 87.65%