84% frontpress

Code Review | Frontpress

WordPress plugin Frontpress scored 84% from 54 tests.

About plugin

  • Plugin page: frontpress
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Mar 8, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dariuszdawidowski (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,012 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
Installer ran successfully

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

An overview of server-side resources used by Frontpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.39 ▼8.27
Dashboard /wp-admin3.33 ▲0.0251.30 ▼4.45
Posts /wp-admin/edit.php3.38 ▲0.0274.16 ▲22.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.56 ▼3.97
Media Library /wp-admin/upload.php3.25 ▲0.0241.93 ▲7.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Frontpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲10913.83 ▲0.626.15 ▲4.1541.77 ▼0.47
Dashboard /wp-admin2,220 ▲145.11 ▼0.74111.70 ▲13.3839.12 ▼3.42
Posts /wp-admin/edit.php2,106 ▲172.31 ▲0.3137.58 ▼4.8033.08 ▼9.10
Add New Post /wp-admin/post-new.php1,525 ▼1723.31 ▲5.28750.28 ▲85.1637.50 ▼18.76
Media Library /wp-admin/upload.php1,405 ▲174.45 ▲0.2797.37 ▼6.8639.98 ▼4.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/frontpress/frontpress.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: inline editing, front-end editor

frontpress/frontpress.php 92% from 13 tests

The main file in "Frontpress" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected188 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2610108
PHP2102378
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin