74% seda-micro

Code Review | SedaMicro

WordPress plugin SedaMicro scored74%from 54 tests.

About plugin

  • Plugin page: seda-micro
  • Plugin version: 0.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Mar 6, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wp4hr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼35.95ms] Passed 4 tests

Analyzing server-side resources used by SedaMicro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.02 ▼4.36
Dashboard /wp-admin3.01 ▼0.2926.41 ▼26.02
Posts /wp-admin/edit.php3.01 ▼0.3422.14 ▼26.56
Add New Post /wp-admin/post-new.php3.01 ▼2.8722.78 ▼77.25
Media Library /wp-admin/upload.php3.01 ▼0.2122.72 ▼13.96

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
seda_keys
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SedaMicro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.55 ▼0.832.13 ▲0.4754.10 ▲8.71
Dashboard /wp-admin2,206 ▲184.89 ▼0.13105.75 ▼10.7341.96 ▼0.91
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0640.65 ▼0.5735.57 ▲0.02
Add New Post /wp-admin/post-new.php1,514 ▼1417.76 ▼0.66659.54 ▲31.3158.72 ▲1.32
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0299.90 ▲2.1741.81 ▼5.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'seda_micro_menu' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • seda_keys
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/seda-micro/seda-micro.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seda-micro/seda-micro.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/seda-micro/seda-micro.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/seda-micro/includes/../incs-funcs.inc.php' (include_path='.:/usr/share/php') in wp-content/plugins/seda-micro/includes/mobile.inc.php on line 16
    • > PHP Warning
      require_once(wp-content/plugins/seda-micro/includes/../incs-funcs.inc.php): failed to open stream: No such file or directory in wp-content/plugins/seda-micro/includes/mobile.inc.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/seda-micro/includes/lang.inc.php' (include_path='.:/usr/share/php') in wp-content/plugins/seda-micro/wp-incs-funcs.php on line 2
    • > PHP Warning
      require_once(wp-content/plugins/seda-micro/includes/lang.inc.php): failed to open stream: No such file or directory in wp-content/plugins/seda-micro/wp-incs-funcs.php on line 2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: content, upload, citizenjournalism

seda-micro/seda-micro.php Passed 13 tests

The main file in "SedaMicro" v. 0.8.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
This plugin will add allow file upload directly from the Android app to the Amazon S3 if correctly connected.

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
Success! There were no dangerous files found in this plugin605 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9101650554
PO File110037
CSS10014
HTML1100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods613.95%
▷ Public methods3786.05%
▷ Protected methods49.30%
▷ Private methods24.65%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rec.png20.85KB8.63KB▼ 58.61%
images/upload.png22.90KB9.22KB▼ 59.73%
images/grey.png5.89KB5.09KB▼ 13.53%