84% acf-page-level

Code Review | ACF Page Level

WordPress plugin ACF Page Level scored 84% from 54 tests.

About plugin

  • Plugin page: acf-page-level
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 11
  • Update frequency: every 200.4 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,431 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
This plugin's installer ran successfully

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

Server-side resources used by ACF Page Level
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.60 ▼0.43
Dashboard /wp-admin3.33 ▲0.0247.95 ▼2.04
Posts /wp-admin/edit.php3.38 ▲0.0248.01 ▲3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.51 ▼1.88
Media Library /wp-admin/upload.php3.25 ▲0.0233.89 ▼0.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by ACF Page Level
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.46 ▼0.901.72 ▼0.3743.72 ▼8.41
Dashboard /wp-admin2,206 ▲185.91 ▲0.05108.66 ▼3.5241.60 ▼0.93
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.1540.13 ▲1.7736.41 ▲4.80
Add New Post /wp-admin/post-new.php1,535 ▲1823.02 ▲5.33587.16 ▼26.8048.76 ▼8.80
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0696.92 ▼5.7843.34 ▲1.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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
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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acf-page-level/acf-page-level.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

acf-page-level/acf-page-level.php Passed 13 tests

"ACF Page Level" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
99 characters long description:
Sometimes you want to show the field groups based on the page level right? Well here you go. Enjoy!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2163160

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected